idhub: add env vars for email credentials
This commit is contained in:
parent
5a89c7e6e6
commit
81a6398f02
10
.env.example
10
.env.example
|
@ -13,6 +13,7 @@
|
||||||
# IDHUB
|
# IDHUB
|
||||||
####
|
####
|
||||||
|
|
||||||
|
IDHUB_TIME_ZONE='Europe/Madrid'
|
||||||
#IDHUB_SECRET_KEY='uncomment-it-and-fill-this'
|
#IDHUB_SECRET_KEY='uncomment-it-and-fill-this'
|
||||||
IDHUB_USER='admin'
|
IDHUB_USER='admin'
|
||||||
IDHUB_PASSWD='admin'
|
IDHUB_PASSWD='admin'
|
||||||
|
@ -21,3 +22,12 @@ IDHUB_EMAIL='admin@example.org'
|
||||||
IDHUB_DEPLOYMENT='DEVELOPMENT'
|
IDHUB_DEPLOYMENT='DEVELOPMENT'
|
||||||
# adapt to your domain in a production/reverse proxy env
|
# adapt to your domain in a production/reverse proxy env
|
||||||
IDHUB_CSRF_TRUSTED_ORIGINS='https://idhub.example.org'
|
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"
|
||||||
|
|
|
@ -15,5 +15,12 @@ services:
|
||||||
- DJANGO_SUPERUSER_EMAIL=${IDHUB_EMAIL}
|
- DJANGO_SUPERUSER_EMAIL=${IDHUB_EMAIL}
|
||||||
- DEPLOYMENT=${IDHUB_DEPLOYMENT}
|
- DEPLOYMENT=${IDHUB_DEPLOYMENT}
|
||||||
- CSRF_TRUSTED_ORIGINS=${IDHUB_CSRF_TRUSTED_ORIGINS}
|
- 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:
|
ports:
|
||||||
- 7000:7000
|
- 7000:7000
|
||||||
|
|
Reference in a new issue