Merge pull request #1 from jimeney/master

Master
This commit is contained in:
Andy 2016-05-04 23:56:15 +02:00
commit b828055150
3 changed files with 16 additions and 0 deletions

View File

@ -1,5 +1,6 @@
FROM debian:jessie
MAINTAINER "Andrey Arapov <andrey.arapov@nixaid.com>"
EXPOSE 80
# To avoid problems with Dialog and curses wizards
ENV DEBIAN_FRONTEND noninteractive

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_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
envsubst < /tmp/taiga.tmpl > /etc/nginx/sites-enabled/taiga
envsubst < /tmp/circus.ini.tmpl > $DATA/circus.ini

View File

@ -40,3 +40,10 @@ PUBLIC_REGISTER_ENABLED = ${PUBLIC_REGISTER}
DEFAULT_FROM_EMAIL = "${NOREPLY_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}