Expose new smtp vars: 'name', and 'logger' (#854)

Co-authored-by: Shane Kilkelly <shane.kilkelly@overleaf.com>
This commit is contained in:
Shane Kilkelly 2021-04-07 14:19:17 +01:00 committed by GitHub
parent d674a12167
commit cb944a8996
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View file

@ -69,6 +69,8 @@ services:
# SHARELATEX_EMAIL_SMTP_PASS:
# SHARELATEX_EMAIL_SMTP_TLS_REJECT_UNAUTH: true
# SHARELATEX_EMAIL_SMTP_IGNORE_TLS: false
# SHARELATEX_EMAIL_SMTP_NAME: '127.0.0.1'
# SHARELATEX_EMAIL_SMTP_LOGGER: true
# SHARELATEX_CUSTOM_EMAIL_FOOTER: "This system is run by department x"
################

View file

@ -285,6 +285,8 @@ if process.env["SHARELATEX_EMAIL_FROM_ADDRESS"]?
port: process.env["SHARELATEX_EMAIL_SMTP_PORT"],
secure: parse(process.env["SHARELATEX_EMAIL_SMTP_SECURE"])
ignoreTLS: parse(process.env["SHARELATEX_EMAIL_SMTP_IGNORE_TLS"])
name: process.env["SHARELATEX_EMAIL_SMTP_NAME"]
logger: process.env["SHARELATEX_EMAIL_SMTP_LOGGER"] == 'true'
textEncoding: process.env["SHARELATEX_EMAIL_TEXT_ENCODING"]
template: