vars.inc.php 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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. // ===
  18. // Auto-detect HTTPS port =>
  19. $https_port = strpos($_SERVER['HTTP_HOST'], ':');
  20. if ($https_port === FALSE) {
  21. $https_port = 443;
  22. } else {
  23. $https_port = substr($_SERVER['HTTP_HOST'], $https_port+1);
  24. }
  25. // Alternatively select port here =>
  26. //$https_port = 1234;
  27. // Other settings =>
  28. $autodiscover_config = array(
  29. // General autodiscover service type: "activesync" or "imap"
  30. // emClient uses autodiscover, but does not support ActiveSync. mailcow excludes emClient from ActiveSync.
  31. 'autodiscoverType' => 'activesync',
  32. // If autodiscoverType => activesync, also use ActiveSync (EAS) for Outlook desktop clients (>= Outlook 2013 on Windows)
  33. // Outlook for Mac does not support ActiveSync
  34. 'useEASforOutlook' => 'yes',
  35. // Please don't use STARTTLS-enabled service ports in the "port" variable.
  36. // The autodiscover service will always point to SMTPS and IMAPS (TLS-wrapped services).
  37. // The autoconfig service will additionally announce the STARTTLS-enabled ports, specified in the "tlsport" variable.
  38. 'imap' => array(
  39. 'server' => $mailcow_hostname,
  40. 'port' => array_pop(explode(':', getenv('IMAPS_PORT'))),
  41. 'tlsport' => array_pop(explode(':', getenv('IMAP_PORT'))),
  42. ),
  43. 'pop3' => array(
  44. 'server' => $mailcow_hostname,
  45. 'port' => array_pop(explode(':', getenv('POPS_PORT'))),
  46. 'tlsport' => array_pop(explode(':', getenv('POP_PORT'))),
  47. ),
  48. 'smtp' => array(
  49. 'server' => $mailcow_hostname,
  50. 'port' => array_pop(explode(':', getenv('SMTPS_PORT'))),
  51. 'tlsport' => array_pop(explode(':', getenv('SUBMISSION_PORT'))),
  52. ),
  53. 'activesync' => array(
  54. 'url' => 'https://'.$mailcow_hostname.($https_port == 443 ? '' : ':'.$https_port).'/Microsoft-Server-ActiveSync',
  55. ),
  56. 'caldav' => array(
  57. 'server' => $mailcow_hostname,
  58. 'port' => $https_port,
  59. ),
  60. 'carddav' => array(
  61. 'server' => $mailcow_hostname,
  62. 'port' => $https_port,
  63. ),
  64. );
  65. unset($https_port);
  66. // If false, we will use DEFAULT_LANG
  67. // Uses HTTP_ACCEPT_LANGUAGE header
  68. $DETECT_LANGUAGE = true;
  69. // Change default language, "de", "en", "es", "nl", "pt", "ru"
  70. $DEFAULT_LANG = 'en';
  71. // Available languages
  72. $AVAILABLE_LANGUAGES = array('de', 'en', 'es', 'fr', 'lv', 'nl', 'pl', 'pt', 'ru', 'it', 'ca');
  73. // Change theme (default: lumen)
  74. // Needs to be one of those: cerulean, cosmo, cyborg, darkly, flatly, journal, lumen, paper, readable, sandstone,
  75. // simplex, slate, spacelab, superhero, united, yeti
  76. // See https://bootswatch.com/
  77. // WARNING: Only lumen is loaded locally. Enabling any other theme, will download external sources.
  78. $DEFAULT_THEME = 'lumen';
  79. // Password complexity as regular expression
  80. $PASSWD_REGEP = '.{4,}';
  81. // Show DKIM private keys - false by default
  82. $SHOW_DKIM_PRIV_KEYS = false;
  83. // mailcow Apps - buttons on login screen
  84. $MAILCOW_APPS = array(
  85. array(
  86. 'name' => 'SOGo',
  87. 'link' => '/SOGo/',
  88. )
  89. );
  90. // Rows until pagination begins
  91. $PAGINATION_SIZE = 20;
  92. // Default number of rows/lines to display (log table)
  93. $LOG_LINES = 100;
  94. // Rows until pagination begins (log table)
  95. $LOG_PAGINATION_SIZE = 30;
  96. // Session lifetime in seconds
  97. $SESSION_LIFETIME = 3600;
  98. // Label for OTP devices
  99. $OTP_LABEL = "mailcow UI";
  100. // Default "to" address in relay test tool
  101. $RELAY_TO = "null@hosted.mailcow.de";
  102. // How long to wait (in s) for cURL Docker requests
  103. $DOCKER_TIMEOUT = 60;