From 7e518a4b05c56eec4f7b4286014f985fbfa6e9b8 Mon Sep 17 00:00:00 2001 From: Miguel Serrano Date: Tue, 2 Mar 2021 17:29:12 +0100 Subject: [PATCH] Added configurable AWS region to email settings (#847) --- server-ce/settings.coffee | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server-ce/settings.coffee b/server-ce/settings.coffee index 43261774ab..a0bd33abf6 100644 --- a/server-ce/settings.coffee +++ b/server-ce/settings.coffee @@ -290,6 +290,9 @@ if process.env["SHARELATEX_EMAIL_FROM_ADDRESS"]? template: customFooter: process.env["SHARELATEX_CUSTOM_EMAIL_FOOTER"] + if process.env["SHARELATEX_EMAIL_AWS_SES_REGION"]? + settings.email.parameters.region = process.env["SHARELATEX_EMAIL_AWS_SES_REGION"] + if process.env["SHARELATEX_EMAIL_SMTP_USER"]? or process.env["SHARELATEX_EMAIL_SMTP_PASS"]? settings.email.parameters.auth = user: process.env["SHARELATEX_EMAIL_SMTP_USER"]