From 6f75a415ce4eaa362329c42e31102cef7b9a5c81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Sun, 27 Jan 2019 21:32:32 +0100 Subject: Configure mailer spool for connexionswing --- nixops/modules/websites/connexionswing/connexionswing.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'nixops/modules/websites/connexionswing/connexionswing.nix') 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 database_user: ${config.mysql.user} database_password: ${config.mysql.password} database_server_version: ${pkgs.mariadb.mysqlVersion} - mailer_transport: smtp - mailer_host: mail.immae.eu + mailer_transport: sendmail + mailer_host: null mailer_user: null mailer_password: null subscription_email: ${config.email} allow_robots: true secret: ${config.secret} + ${if environment == "prod" then '' + services: + swiftmailer.mailer.default.transport: + class: Swift_SendmailTransport + arguments: ['/run/wrappers/bin/sendmail -bs'] + '' else ""} ''; phpFpm = rec { socket = "/var/run/phpfpm/connexionswing-${environment}.sock"; @@ -35,7 +41,7 @@ let php_admin_value[upload_max_filesize] = 20M php_admin_value[post_max_size] = 20M ;php_admin_flag[log_errors] = on - php_admin_value[open_basedir] = "${configRoot}:${webappDir}:${varDir}:/tmp" + php_admin_value[open_basedir] = "/run/wrappers/bin/sendmail:${configRoot}:${webappDir}:${varDir}:/tmp" php_admin_value[session.save_path] = "${varDir}/phpSessions" ${if environment == "dev" then '' pm = ondemand -- cgit v1.2.3