2
0

fix(auth): 🔧 Add ignoreTLS option for SMTP creds

This commit is contained in:
Baptiste Arnaud
2022-06-13 11:50:05 +02:00
parent 177789c1a6
commit 3105adedb3
4 changed files with 16 additions and 12 deletions

View File

@ -31,11 +31,11 @@ const cors = initMiddleware(Cors())
const defaultTransportOptions = {
host: process.env.SMTP_HOST,
port: Number(process.env.SMTP_PORT),
secure: false,
auth: {
user: process.env.SMTP_USERNAME,
pass: process.env.SMTP_PASSWORD,
},
ignoreTLS: process.env.SMTP_IGNORE_TLS === 'true',
}
const defaultFrom = {