diff --git a/dotenv b/dotenv index 2b739cb..758d87d 100644 --- a/dotenv +++ b/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 diff --git a/inventaire/docker-entrypoint.sh b/inventaire/docker-entrypoint.sh index 897f062..bc1810c 100755 --- a/inventaire/docker-entrypoint.sh +++ b/inventaire/docker-entrypoint.sh @@ -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