inventaire: allow to customize the mailer config

This commit is contained in:
maxlath
2025-02-27 17:59:22 +01:00
parent b4b0ddab6f
commit f2ddb13bc7
2 changed files with 17 additions and 1 deletions

4
dotenv
View File

@@ -16,6 +16,10 @@ ORG_URL='https://inventaire.example.org'
# Users receiving emails from the instance can reply to this # Users receiving emails from the instance can reply to this
CONTACT_ADDRESS='contact@inventaire.example.org' CONTACT_ADDRESS='contact@inventaire.example.org'
MAILER_SMTP_HOST=smtp.example.org
MAILER_SMTP_PORT=587
MAILER_SMTP_USERNAME=your_username_on_smtp.example.org
MAILER_SMTP_PASSWORD=your_password_on_smtp.example.org
######## ########
# Everything below is a default configuration # Everything below is a default configuration

View File

@@ -19,7 +19,19 @@ module.exports = {
}, },
elasticsearch: { elasticsearch: {
origin: 'http://elasticsearch:9200', origin: 'http://elasticsearch:9200',
} },
mailer: {
disabled: false,
nodemailer: {
host: '${MAILER_SMTP_HOST}',
port: ${MAILER_SMTP_PORT},
auth: {
user: '${MAILER_SMTP_USERNAME}',
pass: '${MAILER_SMTP_PASSWORD}'
},
},
},
} }
EOF EOF