diff --git a/rootfs/etc/confd/templates/config.inc.php.tmpl b/rootfs/etc/confd/templates/config.inc.php.tmpl index 32b31ad..fccffb6 100644 --- a/rootfs/etc/confd/templates/config.inc.php.tmpl +++ b/rootfs/etc/confd/templates/config.inc.php.tmpl @@ -4,14 +4,26 @@ $config = array(); $config['db_dsnw'] = 'pgsql://{{getenv "DBUSER"}}:{{getenv "DBPASSWORD"}}@{{getenv "DBHOST"}}/{{getenv "DBNAME"}}'; $config['log_driver'] = 'syslog'; -$config['syslog_id'] = 'mail'; +$config['syslog_facility'] = 'mail'; $config['default_host'] = '{{getenv "IMAPHOST"}}'; +$config['imap_conn_options'] = array( + 'ssl' => array( + 'verify_peer' => false, + 'verify_peer_name' => false, + ), +); $config['smtp_server'] = '{{getenv "SMTPHOST"}}'; $config['smtp_port'] = 587; $config['smtp_user'] = '%u'; $config['smtp_pass'] = '%p'; +$config['smtp_conn_options'] = array( + 'ssl' => array( + 'verify_peer' => false, + 'verify_peer_name' => false, + ), +); $config['use_https'] = true; $config['des_key'] = '{{getenv "KEY"}}'; diff --git a/rootfs/etc/confd/templates/nginx.conf.tmpl b/rootfs/etc/confd/templates/nginx.conf.tmpl index 562665f..abc2dbd 100644 --- a/rootfs/etc/confd/templates/nginx.conf.tmpl +++ b/rootfs/etc/confd/templates/nginx.conf.tmpl @@ -42,6 +42,7 @@ http { include fastcgi_params; fastcgi_param PATH_INFO $path_info; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + fastcgi_param SERVER_NAME ; fastcgi_param HTTPS on; fastcgi_read_timeout 300; fastcgi_pass php;