diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-01-27 21:32:32 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-01-27 21:32:32 +0100 |
commit | 6f75a415ce4eaa362329c42e31102cef7b9a5c81 (patch) | |
tree | 9c917e073da18089296dc875f922600338143b01 /nixops/modules/websites/connexionswing | |
parent | 364eb3d0aa08d9193547a6aa4f84bd43d0fb1ee8 (diff) | |
download | Nix-6f75a415ce4eaa362329c42e31102cef7b9a5c81.tar.gz Nix-6f75a415ce4eaa362329c42e31102cef7b9a5c81.tar.zst Nix-6f75a415ce4eaa362329c42e31102cef7b9a5c81.zip |
Configure mailer spool for connexionswing
Diffstat (limited to 'nixops/modules/websites/connexionswing')
-rw-r--r-- | nixops/modules/websites/connexionswing/connexionswing.nix | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/nixops/modules/websites/connexionswing/connexionswing.nix b/nixops/modules/websites/connexionswing/connexionswing.nix index a9ee2ba..307def0 100644 --- a/nixops/modules/websites/connexionswing/connexionswing.nix +++ b/nixops/modules/websites/connexionswing/connexionswing.nix | |||
@@ -13,13 +13,19 @@ let | |||
13 | database_user: ${config.mysql.user} | 13 | database_user: ${config.mysql.user} |
14 | database_password: ${config.mysql.password} | 14 | database_password: ${config.mysql.password} |
15 | database_server_version: ${pkgs.mariadb.mysqlVersion} | 15 | database_server_version: ${pkgs.mariadb.mysqlVersion} |
16 | mailer_transport: smtp | 16 | mailer_transport: sendmail |
17 | mailer_host: mail.immae.eu | 17 | mailer_host: null |
18 | mailer_user: null | 18 | mailer_user: null |
19 | mailer_password: null | 19 | mailer_password: null |
20 | subscription_email: ${config.email} | 20 | subscription_email: ${config.email} |
21 | allow_robots: true | 21 | allow_robots: true |
22 | secret: ${config.secret} | 22 | secret: ${config.secret} |
23 | ${if environment == "prod" then '' | ||
24 | services: | ||
25 | swiftmailer.mailer.default.transport: | ||
26 | class: Swift_SendmailTransport | ||
27 | arguments: ['/run/wrappers/bin/sendmail -bs'] | ||
28 | '' else ""} | ||
23 | ''; | 29 | ''; |
24 | phpFpm = rec { | 30 | phpFpm = rec { |
25 | socket = "/var/run/phpfpm/connexionswing-${environment}.sock"; | 31 | socket = "/var/run/phpfpm/connexionswing-${environment}.sock"; |
@@ -35,7 +41,7 @@ let | |||
35 | php_admin_value[upload_max_filesize] = 20M | 41 | php_admin_value[upload_max_filesize] = 20M |
36 | php_admin_value[post_max_size] = 20M | 42 | php_admin_value[post_max_size] = 20M |
37 | ;php_admin_flag[log_errors] = on | 43 | ;php_admin_flag[log_errors] = on |
38 | php_admin_value[open_basedir] = "${configRoot}:${webappDir}:${varDir}:/tmp" | 44 | php_admin_value[open_basedir] = "/run/wrappers/bin/sendmail:${configRoot}:${webappDir}:${varDir}:/tmp" |
39 | php_admin_value[session.save_path] = "${varDir}/phpSessions" | 45 | php_admin_value[session.save_path] = "${varDir}/phpSessions" |
40 | ${if environment == "dev" then '' | 46 | ${if environment == "dev" then '' |
41 | pm = ondemand | 47 | pm = ondemand |