Additional environment variables for Email Server functionality

This commit is contained in:
James Coleman-Powell 2016-05-04 21:26:29 +01:00
parent d680399bcf
commit f2b00badc9
2 changed files with 15 additions and 0 deletions

8
launch
View File

@ -25,6 +25,14 @@ export TAIGA_DB_NAME=${TAIGA_DB_NAME:-taiga}
export TAIGA_DB_USER=${TAIGA_DB_USER:-taiga} export TAIGA_DB_USER=${TAIGA_DB_USER:-taiga}
export TAIGA_DB_PASSWORD=${TAIGA_DB_PASSWORD:-mysecretpassword} export TAIGA_DB_PASSWORD=${TAIGA_DB_PASSWORD:-mysecretpassword}
export EMAIL_HOST=${EMAIL_HOST:-localhost}
export EMAIL_HOST_USER=${EMAIL_HOST_USER:-noreply@noreply.com}
export EMAIL_HOST_PASSWORD=${EMAIL_HOST_PASSWORD:-password}
export EMAIL_HOST_PORT=${EMAIL_HOST_PORT:-587}
export EMAIL_USE_TLS=${EMAIL_USE_TLS:-False}
export EMAIL_BACKEND=${EMAIL_BACKEND:-django.core.mail.backends.smtp.EmailBackend}
# Generate configs based on the template seeds # Generate configs based on the template seeds
envsubst < /tmp/taiga.tmpl > /etc/nginx/sites-enabled/taiga envsubst < /tmp/taiga.tmpl > /etc/nginx/sites-enabled/taiga
envsubst < /tmp/circus.ini.tmpl > $DATA/circus.ini envsubst < /tmp/circus.ini.tmpl > $DATA/circus.ini

View File

@ -40,3 +40,10 @@ PUBLIC_REGISTER_ENABLED = ${PUBLIC_REGISTER}
DEFAULT_FROM_EMAIL = "${NOREPLY_EMAIL}" DEFAULT_FROM_EMAIL = "${NOREPLY_EMAIL}"
SERVER_EMAIL = DEFAULT_FROM_EMAIL SERVER_EMAIL = DEFAULT_FROM_EMAIL
EMAIL_BACKEND = "${EMAIL_BACKEND}"
EMAIL_USE_TLS = ${EMAIL_USE_TLS}
EMAIL_HOST = "${EMAIL_HOST}"
EMAIL_HOST_USER = "${EMAIL_HOST_USER}"
EMAIL_HOST_PASSWORD = "${EMAIL_HOST_PASSWORD}"
EMAIL_PORT = ${EMAIL_HOST_PORT}