Added configurable AWS region to email settings (#847)

This commit is contained in:
Miguel Serrano 2021-03-02 17:29:12 +01:00 committed by GitHub
parent a0e7ea16d2
commit 7e518a4b05

View file

@ -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"]