2016-12-10 03:39:02 +08:00
|
|
|
<?php
|
2017-05-14 05:07:48 +08:00
|
|
|
error_reporting(E_ERROR);
|
|
|
|
//error_reporting(E_ALL);
|
2016-12-10 03:39:02 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
PLEASE USE THE FILE "vars.local.inc.php" TO OVERWRITE SETTINGS AND MAKE THEM PERSISTENT!
|
|
|
|
This file will be reset on upgrades.
|
|
|
|
*/
|
|
|
|
|
|
|
|
// SQL database connection variables
|
2017-05-17 01:20:58 +08:00
|
|
|
$database_type = 'mysql';
|
|
|
|
$database_host = 'mysql';
|
2016-12-15 04:10:11 +08:00
|
|
|
$database_user = getenv('DBUSER');
|
|
|
|
$database_pass = getenv('DBPASS');
|
|
|
|
$database_name = getenv('DBNAME');
|
2016-12-21 19:16:05 +08:00
|
|
|
|
|
|
|
// Other variables
|
|
|
|
$mailcow_hostname = getenv('MAILCOW_HOSTNAME');
|
2016-12-10 03:39:02 +08:00
|
|
|
|
2017-06-26 00:09:42 +08:00
|
|
|
// Autodiscover settings
|
|
|
|
$autodiscover_config = array(
|
|
|
|
// Enable the autodiscover service for Outlook desktop clients
|
|
|
|
'useEASforOutlook' => 'yes',
|
|
|
|
// General autodiscover service type: "activesync" or "imap"
|
|
|
|
'autodiscoverType' => 'activesync',
|
2017-07-10 14:46:20 +08:00
|
|
|
// Please don't use STARTTLS-enabled service ports here.
|
2017-06-29 05:22:51 +08:00
|
|
|
// The autodiscover service will always point to SMTPS and IMAPS (TLS-wrapped services).
|
2017-06-26 00:09:42 +08:00
|
|
|
'imap' => array(
|
|
|
|
'server' => $mailcow_hostname,
|
2017-07-10 14:46:20 +08:00
|
|
|
'port' => getenv('IMAPS_PORT'),
|
2017-06-26 00:09:42 +08:00
|
|
|
),
|
|
|
|
'smtp' => array(
|
|
|
|
'server' => $mailcow_hostname,
|
2017-07-10 14:46:20 +08:00
|
|
|
'port' => getenv('SMTPS_PORT'),
|
2017-06-26 00:09:42 +08:00
|
|
|
),
|
|
|
|
'activesync' => array(
|
2017-07-10 14:46:20 +08:00
|
|
|
'url' => 'https://'.$mailcow_hostname.'/Microsoft-Server-ActiveSync'
|
2017-06-29 05:22:51 +08:00
|
|
|
),
|
|
|
|
'caldav' => array(
|
2017-07-10 14:46:20 +08:00
|
|
|
'url' => 'https://'.$mailcow_hostname
|
2017-06-29 05:22:51 +08:00
|
|
|
),
|
|
|
|
'carddav' => array(
|
2017-07-10 14:46:20 +08:00
|
|
|
'url' => 'https://'.$mailcow_hostname
|
|
|
|
)
|
2017-06-26 00:09:42 +08:00
|
|
|
);
|
|
|
|
|
2016-12-10 03:39:02 +08:00
|
|
|
// Where to go after adding and editing objects
|
|
|
|
// Can be "form" or "previous"
|
|
|
|
// "form" will stay in the current form, "previous" will redirect to previous page
|
2017-05-17 01:20:58 +08:00
|
|
|
$FORM_ACTION = 'previous';
|
2016-12-10 03:39:02 +08:00
|
|
|
|
2017-05-17 00:11:58 +08:00
|
|
|
// Change default language, "de", "en", "es", "nl", "pt", "ru"
|
2017-05-17 01:20:58 +08:00
|
|
|
$DEFAULT_LANG = 'en';
|
2016-12-10 03:39:02 +08:00
|
|
|
|
2017-05-17 00:11:58 +08:00
|
|
|
// Available languages
|
2017-05-19 18:34:29 +08:00
|
|
|
$AVAILABLE_LANGUAGES = array('de', 'en', 'es', 'nl', 'pt', 'ru', 'it');
|
2017-05-17 00:11:58 +08:00
|
|
|
|
2016-12-10 03:39:02 +08:00
|
|
|
// Change theme (default: lumen)
|
|
|
|
// Needs to be one of those: cerulean, cosmo, cyborg, darkly, flatly, journal, lumen, paper, readable, sandstone,
|
|
|
|
// simplex, slate, spacelab, superhero, united, yeti
|
|
|
|
// See https://bootswatch.com/
|
2017-05-30 03:51:06 +08:00
|
|
|
// WARNING: Only lumen is loaded locally. Enabling any other theme, will download external sources.
|
2017-05-17 01:20:58 +08:00
|
|
|
$DEFAULT_THEME = 'lumen';
|
2017-01-26 02:07:30 +08:00
|
|
|
|
2017-02-22 05:27:11 +08:00
|
|
|
// Password complexity as regular expression
|
|
|
|
$PASSWD_REGEP = '.{4,}';
|
2017-03-21 19:22:13 +08:00
|
|
|
|
|
|
|
// mailcow Apps - buttons on login screen
|
|
|
|
$MAILCOW_APPS = array(
|
|
|
|
array(
|
|
|
|
'name' => 'SOGo',
|
2017-06-11 08:05:10 +08:00
|
|
|
'link' => '/SOGo/',
|
2017-06-12 15:38:36 +08:00
|
|
|
'description' => 'SOGo is a web-based client for email, address book and calendar.'
|
2017-03-21 19:22:13 +08:00
|
|
|
),
|
|
|
|
// array(
|
|
|
|
// 'name' => 'Roundcube',
|
2017-06-11 08:05:10 +08:00
|
|
|
// 'link' => '/rc/',
|
2017-06-12 15:38:36 +08:00
|
|
|
// 'description' => 'Roundcube is a web-based email client.',
|
2017-03-21 19:22:13 +08:00
|
|
|
// ),
|
|
|
|
);
|
|
|
|
|
2017-03-22 17:46:24 +08:00
|
|
|
// Rows until pagination begins
|
|
|
|
$PAGINATION_SIZE = 10;
|
|
|
|
|
2017-05-30 03:51:06 +08:00
|
|
|
// Rows until pagination begins (log table)
|
|
|
|
$LOG_PAGINATION_SIZE = 30;
|
|
|
|
|
2017-05-07 19:38:31 +08:00
|
|
|
// Session lifetime in seconds
|
|
|
|
$SESSION_LIFETIME = 3600;
|
2017-05-27 05:02:04 +08:00
|
|
|
|
|
|
|
// Label for OTP devices
|
2017-06-11 08:05:10 +08:00
|
|
|
$OTP_LABEL = "mailcow UI";
|