vars.inc.php 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <?php
  2. error_reporting(E_ERROR);
  3. //error_reporting(E_ALL);
  4. /*
  5. PLEASE USE THE FILE "vars.local.inc.php" TO OVERWRITE SETTINGS AND MAKE THEM PERSISTENT!
  6. This file will be reset on upgrades.
  7. */
  8. // SQL database connection variables
  9. $database_type = 'mysql';
  10. $database_host = 'mysql';
  11. $database_user = getenv('DBUSER');
  12. $database_pass = getenv('DBPASS');
  13. $database_name = getenv('DBNAME');
  14. // Other variables
  15. $mailcow_hostname = getenv('MAILCOW_HOSTNAME');
  16. // Autodiscover settings
  17. $autodiscover_config = array(
  18. // Enable the autodiscover service for Outlook desktop clients
  19. 'useEASforOutlook' => 'yes',
  20. // General autodiscover service type: "activesync" or "imap"
  21. 'autodiscoverType' => 'activesync',
  22. 'imap' => array(
  23. 'server' => $mailcow_hostname,
  24. 'port' => getenv('IMAPS_PORT'),
  25. 'ssl' => 'on',
  26. ),
  27. 'smtp' => array(
  28. 'server' => $mailcow_hostname,
  29. 'port' => getenv('SMTPS_PORT'),
  30. 'ssl' => 'on'
  31. ),
  32. 'activesync' => array(
  33. 'url' => 'https://'.$mailcow_hostname.'/Microsoft-Server-ActiveSync'
  34. )
  35. );
  36. // Where to go after adding and editing objects
  37. // Can be "form" or "previous"
  38. // "form" will stay in the current form, "previous" will redirect to previous page
  39. $FORM_ACTION = 'previous';
  40. // Change default language, "de", "en", "es", "nl", "pt", "ru"
  41. $DEFAULT_LANG = 'en';
  42. // Available languages
  43. $AVAILABLE_LANGUAGES = array('de', 'en', 'es', 'nl', 'pt', 'ru', 'it');
  44. // Change theme (default: lumen)
  45. // Needs to be one of those: cerulean, cosmo, cyborg, darkly, flatly, journal, lumen, paper, readable, sandstone,
  46. // simplex, slate, spacelab, superhero, united, yeti
  47. // See https://bootswatch.com/
  48. // WARNING: Only lumen is loaded locally. Enabling any other theme, will download external sources.
  49. $DEFAULT_THEME = 'lumen';
  50. // Password complexity as regular expression
  51. $PASSWD_REGEP = '.{4,}';
  52. // mailcow Apps - buttons on login screen
  53. $MAILCOW_APPS = array(
  54. array(
  55. 'name' => 'SOGo',
  56. 'link' => '/SOGo/',
  57. 'description' => 'SOGo is a web-based client for email, address book and calendar.'
  58. ),
  59. // array(
  60. // 'name' => 'Roundcube',
  61. // 'link' => '/rc/',
  62. // 'description' => 'Roundcube is a web-based email client.',
  63. // ),
  64. );
  65. // Rows until pagination begins
  66. $PAGINATION_SIZE = 10;
  67. // Rows until pagination begins (log table)
  68. $LOG_PAGINATION_SIZE = 30;
  69. // Session lifetime in seconds
  70. $SESSION_LIFETIME = 3600;
  71. // Label for OTP devices
  72. $OTP_LABEL = "mailcow UI";