roundcube/rootfs/etc/confd/templates/config.inc.php.tmpl

53 lines
1.7 KiB
Cheetah

<?php
$config = array();
$config['db_dsnw'] = 'pgsql://{{getenv "DB_USER"}}:{{getenv "DB_PASSWORD"}}@{{getenv "DB_HOST"}}/{{getenv "DB_NAME"}}';
$config['log_driver'] = 'stdout';
$config['skin'] = 'elastic';
$config['imap_host'] = '{{getenv "IMAP_HOST" "tls://%n"}}';
$config['imap_conn_options'] = array(
'ssl' => array(
'verify_peer' => true,
'verify_peer_name' => true,
),
);
$config['smtp_host'] = '{{getenv "SMTP_HOST" "tls://%n"}}:{{getenv "SMTP_PORT" "587"}}';
$config['smtp_user'] = '%u';
$config['smtp_pass'] = '%p';
/*$config['smtp_conn_options'] = array(
'ssl' => array(
'verify_peer' => true,
'verify_peer_name' => true,
),
);*/
$config['use_https'] = true;
$config['des_key'] = '{{getenv "SECRET_KEY"}}';
$config['cipher_method'] = '{{getenv "CIPHER_METHOD" "AES-256-CBC"}}';
$config['mail_domain'] = '%t';
$config['username_domain'] = '%d';
$config['username_domain_forced'] = true;
$config['password_charset'] = 'UTF-8';
$config['plugins'] = array('archive', 'zipdownload');
$config['spellcheck_engine'] = 'pspell';
$config['default_charset'] = 'UTF-8';
$config['oauth_provider'] = 'generic';
$config['oauth_provider_name'] = '{{getenv "OAUTH_PROVIDER_NAME"}}';
$config['oauth_client_id'] = '{{getenv "OAUTH_CLIENT_ID"}}';
$config['oauth_client_secret'] = '{{getenv "OAUTH_CLIENT_SECRET"}}';
$config['oauth_auth_uri'] = '{{getenv "OAUTH_AUTH_URI"}}';
$config['oauth_token_uri'] = '{{getenv "OAUTH_TOKEN_URI"}}';
$config['oauth_identity_uri'] = '{{getenv "OAUTH_IDENTITY_URI"}}';
$config['oauth_scope'] = 'email profile openid';
$config['oauth_auth_parameters'] = [];
$config['oauth_identity_fields'] = ['preferred_username'];
$config['oauth_login_redirect'] = true;