vars.inc.php 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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. // Enable the autodiscover service for Outlook desktop clients
  30. 'useEASforOutlook' => 'yes',
  31. // General autodiscover service type: "activesync" or "imap"
  32. 'autodiscoverType' => 'activesync',
  33. // Please don't use STARTTLS-enabled service ports in the "port" variable.
  34. // The autodiscover service will always point to SMTPS and IMAPS (TLS-wrapped services).
  35. // The autoconfig service will additionally announce the STARTTLS-enabled ports, specified in the "tlsport" variable.
  36. 'imap' => array(
  37. 'server' => $mailcow_hostname,
  38. 'port' => array_pop(explode(':', getenv('IMAPS_PORT'))),
  39. 'tlsport' => array_pop(explode(':', getenv('IMAP_PORT'))),
  40. ),
  41. 'pop3' => array(
  42. 'server' => $mailcow_hostname,
  43. 'port' => array_pop(explode(':', getenv('POPS_PORT'))),
  44. 'tlsport' => array_pop(explode(':', getenv('POP_PORT'))),
  45. ),
  46. 'smtp' => array(
  47. 'server' => $mailcow_hostname,
  48. 'port' => array_pop(explode(':', getenv('SMTPS_PORT'))),
  49. 'tlsport' => array_pop(explode(':', getenv('SUBMISSION_PORT'))),
  50. ),
  51. 'activesync' => array(
  52. 'url' => 'https://'.$mailcow_hostname.($https_port == 443 ? '' : ':'.$https_port).'/Microsoft-Server-ActiveSync',
  53. ),
  54. 'caldav' => array(
  55. 'server' => $mailcow_hostname,
  56. 'port' => $https_port,
  57. ),
  58. 'carddav' => array(
  59. 'server' => $mailcow_hostname,
  60. 'port' => $https_port,
  61. ),
  62. );
  63. unset($https_port);
  64. // Change default language, "de", "en", "es", "nl", "pt", "ru"
  65. $DEFAULT_LANG = 'en';
  66. // Available languages
  67. $AVAILABLE_LANGUAGES = array('de', 'en', 'es', 'nl', 'pt', 'ru', 'it');
  68. // Change theme (default: lumen)
  69. // Needs to be one of those: cerulean, cosmo, cyborg, darkly, flatly, journal, lumen, paper, readable, sandstone,
  70. // simplex, slate, spacelab, superhero, united, yeti
  71. // See https://bootswatch.com/
  72. // WARNING: Only lumen is loaded locally. Enabling any other theme, will download external sources.
  73. $DEFAULT_THEME = 'lumen';
  74. // Password complexity as regular expression
  75. $PASSWD_REGEP = '.{4,}';
  76. // mailcow Apps - buttons on login screen
  77. $MAILCOW_APPS = array(
  78. array(
  79. 'name' => 'SOGo',
  80. 'link' => '/SOGo/',
  81. 'description' => 'SOGo is a web-based client for email, address book and calendar.'
  82. ),
  83. // array(
  84. // 'name' => 'Roundcube',
  85. // 'link' => '/rc/',
  86. // 'description' => 'Roundcube is a web-based email client.',
  87. // ),
  88. );
  89. // Rows until pagination begins
  90. $PAGINATION_SIZE = 10;
  91. // Rows until pagination begins (log table)
  92. $LOG_PAGINATION_SIZE = 30;
  93. // Session lifetime in seconds
  94. $SESSION_LIFETIME = 3600;
  95. // Label for OTP devices
  96. $OTP_LABEL = "mailcow UI";