From 81a6398f02c9fd9aec6a4a022528be2c9b53be7b Mon Sep 17 00:00:00 2001 From: pedro Date: Tue, 14 Nov 2023 11:28:58 +0100 Subject: [PATCH] idhub: add env vars for email credentials --- .env.example | 10 ++++++++++ docker-compose_idhub-temp.yml | 7 +++++++ 2 files changed, 17 insertions(+) diff --git a/.env.example b/.env.example index 2ea283f..4cf5538 100644 --- a/.env.example +++ b/.env.example @@ -13,6 +13,7 @@ # IDHUB #### +IDHUB_TIME_ZONE='Europe/Madrid' #IDHUB_SECRET_KEY='uncomment-it-and-fill-this' IDHUB_USER='admin' IDHUB_PASSWD='admin' @@ -21,3 +22,12 @@ IDHUB_EMAIL='admin@example.org' IDHUB_DEPLOYMENT='DEVELOPMENT' # adapt to your domain in a production/reverse proxy env IDHUB_CSRF_TRUSTED_ORIGINS='https://idhub.example.org' + +# fill this section with your email credentials +IDHUB_DEFAULT_FROM_EMAIL="user@example.org" +IDHUB_EMAIL_HOST="smtp.example.org" +IDHUB_EMAIL_HOST_USER="smtp_user" +IDHUB_EMAIL_HOST_PASSWORD="smtp_passwd" +IDHUB_EMAIL_PORT=25 +IDHUB_EMAIL_USE_TLS=True +IDHUB_EMAIL_BACKEND="django.core.mail.backends.smtp.EmailBackend" diff --git a/docker-compose_idhub-temp.yml b/docker-compose_idhub-temp.yml index e9ea77b..b3ed1e3 100644 --- a/docker-compose_idhub-temp.yml +++ b/docker-compose_idhub-temp.yml @@ -15,5 +15,12 @@ services: - DJANGO_SUPERUSER_EMAIL=${IDHUB_EMAIL} - DEPLOYMENT=${IDHUB_DEPLOYMENT} - CSRF_TRUSTED_ORIGINS=${IDHUB_CSRF_TRUSTED_ORIGINS} + - DEFAULT_FROM_EMAIL=${IDHUB_DEFAULT_FROM_EMAIL} + - EMAIL_HOST=${IDHUB_EMAIL_HOST} + - EMAIL_HOST_USER=${IDHUB_EMAIL_HOST_USER} + - EMAIL_HOST_PASSWORD=${IDHUB_EMAIL_HOST_PASSWORD} + - EMAIL_PORT=${IDHUB_EMAIL_PORT} + - EMAIL_USE_TLS=${IDHUB_EMAIL_USE_TLS} + - EMAIL_BACKEND=${IDHUB_EMAIL_BACKEND} ports: - 7000:7000