diff options
Diffstat (limited to 'nixops')
-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 |