×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Marco Matta
Added: Aug 27, 2021 1:58 PM
Modified: Apr 20, 2022 1:44 PM
Views: 3465
Tags: sugarcrm
  1. <?php
  2. $sugar_config['dbconfig']['db_host_name'] = 'hostname';
  3. $sugar_config['dbconfig']['db_user_name'] = 'username';
  4. $sugar_config['dbconfig']['db_password'] = 'password';
  5. $sugar_config['dbconfig']['db_name'] = 'db';
  6. $sugar_config['site_url'] = 'http://localhost/AAA';
  7. $sugar_config['host_name'] = 'localhost';
  8. $sugar_config['unique_key'] = 'qwertyuiop1234567890asdfghjklzxc';
  9. $sugar_config['session_dir'] = '';
  10. $sugar_config['resource_management']['default_limit'] = 10000;
  11.  
  12. // ver >= 7 (no suitecrm)
  13. $sugar_config['full_text_engine']['Elastic']['host'] = 'localhost';
  14. $sugar_config['full_text_engine']['Elastic']['port'] = '9200';
  15. $sugar_config['full_text_engine']['Elastic']['transport'] = 'http'; // testing environments only
  16.  
  17. // disable AWS S3 uploads
  18. $sugar_config['upload_wrapper_class'] = ''; // check if needed
  19.  
  20. // only on localhost machine
  21. $sugar_config['developerMode'] = true; // only on localhost machine
  22. $sugar_config['external_cache_disabled_db'] = true; // only on localhost machine
  23.  
  24. // ver >= 11
  25. $sugar_config['login_page'] =  array (
  26. 'marketing_extras_content' =>
  27.         array (
  28.                 'url' => 'https://www.sugarcrm.com/product-login-page-service/',
  29.                 'static_url' => 'include/MarketingExtras/StaticMarketingContent/static.html',
  30.                 'connect_timeout_ms' => 150,
  31.                 'timeout_ms' => 300,
  32.         ),
  33. );
  34.