2020-10-20 19:25:00 +00:00
|
|
|
|
const isProduction = process.env.NODE_ENV === 'production';
|
|
|
|
|
const forcedMail = process.argv.findIndex(s => s === '--devSendMails') !== -1;
|
|
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
|
"sendMails": isProduction || forcedMail,
|
2020-10-22 22:41:16 +00:00
|
|
|
|
"emailFrom": process.env.MAILSENDER,
|
2020-10-20 19:25:00 +00:00
|
|
|
|
"smtpOptions": {
|
2020-10-22 22:41:16 +00:00
|
|
|
|
"host": process.env.MAILSERVER,
|
2020-10-20 19:25:00 +00:00
|
|
|
|
"port": 587,
|
|
|
|
|
"auth": {
|
|
|
|
|
"user": process.env.MAILUSER,
|
|
|
|
|
"pass": process.env.MAILPW
|
|
|
|
|
}
|
|
|
|
|
}
|
2020-10-22 22:41:16 +00:00
|
|
|
|
};
|