vars.inc.php 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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. // Please don't use STARTTLS-enabled service ports here.
  23. // The autodiscover service will always point to SMTPS and IMAPS (TLS-wrapped services).
  24. 'imap' => array(
  25. 'server' => $mailcow_hostname,
  26. 'port' => getenv('IMAPS_PORT'),
  27. ),
  28. 'smtp' => array(
  29. 'server' => $mailcow_hostname,
  30. 'port' => getenv('SMTPS_PORT'),
  31. ),
  32. 'activesync' => array(
  33. 'url' => 'https://'.$mailcow_hostname.'/Microsoft-Server-ActiveSync'
  34. ),
  35. 'caldav' => array(
  36. 'url' => 'https://'.$mailcow_hostname
  37. ),
  38. 'carddav' => array(
  39. 'url' => 'https://'.$mailcow_hostname
  40. )
  41. );
  42. // Where to go after adding and editing objects
  43. // Can be "form" or "previous"
  44. // "form" will stay in the current form, "previous" will redirect to previous page
  45. $FORM_ACTION = 'previous';
  46. // Change default language, "de", "en", "es", "nl", "pt", "ru"
  47. $DEFAULT_LANG = 'en';
  48. // Available languages
  49. $AVAILABLE_LANGUAGES = array('de', 'en', 'es', 'nl', 'pt', 'ru', 'it');
  50. // Change theme (default: lumen)
  51. // Needs to be one of those: cerulean, cosmo, cyborg, darkly, flatly, journal, lumen, paper, readable, sandstone,
  52. // simplex, slate, spacelab, superhero, united, yeti
  53. // See https://bootswatch.com/
  54. // WARNING: Only lumen is loaded locally. Enabling any other theme, will download external sources.
  55. $DEFAULT_THEME = 'lumen';
  56. // Password complexity as regular expression
  57. $PASSWD_REGEP = '.{4,}';
  58. // mailcow Apps - buttons on login screen
  59. $MAILCOW_APPS = array(
  60. array(
  61. 'name' => 'SOGo',
  62. 'link' => '/SOGo/',
  63. 'description' => 'SOGo is a web-based client for email, address book and calendar.'
  64. ),
  65. // array(
  66. // 'name' => 'Roundcube',
  67. // 'link' => '/rc/',
  68. // 'description' => 'Roundcube is a web-based email client.',
  69. // ),
  70. );
  71. // Rows until pagination begins
  72. $PAGINATION_SIZE = 10;
  73. // Rows until pagination begins (log table)
  74. $LOG_PAGINATION_SIZE = 30;
  75. // Session lifetime in seconds
  76. $SESSION_LIFETIME = 3600;
  77. // Label for OTP devices
  78. $OTP_LABEL = "mailcow UI";