1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-18 12:49:43 +02:00

feat: Add SMTP_NAME environment variable (#761)

Closes #758
This commit is contained in:
Smiley3112 2024-05-18 14:02:21 +01:00 committed by GitHub
parent 3deef39a3e
commit 3b43d7d2c9
4 changed files with 4 additions and 0 deletions

View file

@ -39,6 +39,7 @@ services:
# Email Notifications (https://nodemailer.com/smtp/) # Email Notifications (https://nodemailer.com/smtp/)
# - SMTP_HOST= # - SMTP_HOST=
# - SMTP_PORT=587 # - SMTP_PORT=587
# - SMTP_NAME=
# - SMTP_SECURE=true # - SMTP_SECURE=true
# - SMTP_USER= # - SMTP_USER=
# - SMTP_PASSWORD= # - SMTP_PASSWORD=

View file

@ -47,6 +47,7 @@ services:
# Email Notifications (https://nodemailer.com/smtp/) # Email Notifications (https://nodemailer.com/smtp/)
# - SMTP_HOST= # - SMTP_HOST=
# - SMTP_PORT=587 # - SMTP_PORT=587
# - SMTP_NAME=
# - SMTP_SECURE=true # - SMTP_SECURE=true
# - SMTP_USER= # - SMTP_USER=
# - SMTP_PASSWORD= # - SMTP_PASSWORD=

View file

@ -27,6 +27,7 @@ module.exports = function defineSmtpHook(sails) {
pool: true, pool: true,
host: sails.config.custom.smtpHost, host: sails.config.custom.smtpHost,
port: sails.config.custom.smtpPort, port: sails.config.custom.smtpPort,
name: sails.config.custom.smtpName,
secure: sails.config.custom.smtpSecure, secure: sails.config.custom.smtpSecure,
auth: sails.config.custom.smtpUser && { auth: sails.config.custom.smtpUser && {
user: sails.config.custom.smtpUser, user: sails.config.custom.smtpUser,

View file

@ -54,6 +54,7 @@ module.exports.custom = {
smtpHost: process.env.SMTP_HOST, smtpHost: process.env.SMTP_HOST,
smtpPort: process.env.SMTP_PORT || 587, smtpPort: process.env.SMTP_PORT || 587,
smtpName: process.env.SMTP_NAME,
smtpSecure: process.env.SMTP_SECURE === 'true', smtpSecure: process.env.SMTP_SECURE === 'true',
smtpUser: process.env.SMTP_USER, smtpUser: process.env.SMTP_USER,
smtpPassword: process.env.SMTP_PASSWORD, smtpPassword: process.env.SMTP_PASSWORD,