inventaire: allow to customize the mailer config
This commit is contained in:
4
dotenv
4
dotenv
@@ -16,6 +16,10 @@ ORG_URL='https://inventaire.example.org'
|
||||
# Users receiving emails from the instance can reply to this
|
||||
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
|
||||
|
||||
@@ -19,7 +19,19 @@ module.exports = {
|
||||
},
|
||||
elasticsearch: {
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user