Skip to content
This repository was archived by the owner on Aug 25, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@
}
}

#DEFAULT_FROM_EMAIL = "john@doe.com"
#CHANGE_NOTIFICATIONS_MIN_INTERVAL = 300 #seconds
#EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
#EMAIL_USE_TLS = False
#EMAIL_USE_SSL = False # You cannot use both (TLS and SSL) at the same time!
#EMAIL_HOST = 'localhost'
#EMAIL_PORT = 25
#EMAIL_HOST_USER = 'user'
#EMAIL_HOST_PASSWORD = 'password'
DEFAULT_FROM_EMAIL = "$DEFAULT_FROM_EMAIL"
CHANGE_NOTIFICATIONS_MIN_INTERVAL = $CHANGE_NOTIFICATIONS_MIN_INTERVAL #seconds
EMAIL_BACKEND = '$EMAIL_BACKEND'
EMAIL_USE_TLS = $EMAIL_USE_TLS
EMAIL_USE_SSL = $EMAIL_USE_SSL # You cannot use both (TLS and SSL) at the same time!
EMAIL_HOST = '$EMAIL_HOST'
EMAIL_PORT = $EMAIL_PORT
EMAIL_HOST_USER = '$EMAIL_HOST_USER'
EMAIL_HOST_PASSWORD = '$EMAIL_HOST_PASSWORD'

EVENTS_PUSH_BACKEND = "taiga.events.backends.rabbitmq.EventsPushBackend"
EVENTS_PUSH_BACKEND_OPTIONS = {"url": "amqp://$RABBIT_USER:$RABBIT_PASSWORD@$RABBIT_HOST:$RABBIT_PORT/$RABBIT_VHOST"}
Expand Down
46 changes: 46 additions & 0 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,52 @@ if [ ! -f $INITIAL_SETUP_LOCK ]; then
-e 's/$RABBIT_PASSWORD/'$RABBIT_PASSWORD_ESCAPED'/' \
-e 's/$RABBIT_VHOST/'$RABBIT_VHOST'/' \
-i /tmp/taiga-conf/config.py

if [ "$DEFAULT_FROM_EMAIL" ];then
sed -e 's/$DEFAULT_FROM_EMAIL/'$DEFAULT_FROM_EMAIL'/
-i /tmp/taiga-conf/config.py
fi

if [ "$CHANGE_NOTIFICATIONS_MIN_INTERVAL" ];then
sed -e 's/$CHANGE_NOTIFICATIONS_MIN_INTERVAL/'$CHANGE_NOTIFICATIONS_MIN_INTERVAL'/' \
-i /tmp/taiga-conf/config.py
fi

if [ "$EMAIL_BACKEND" ];then
sed -e 's/$EMAIL_BACKEND/'$EMAIL_BACKEND'/' \
-i /tmp/taiga-conf/config.py
fi

if [ "$EMAIL_USE_TLS" ];then
sed -e 's/$EMAIL_USE_TLS/'$EMAIL_USE_TLS'/' \
-i /tmp/taiga-conf/config.py
fi

if [ "$EMAIL_USE_SSL" ];then
sed -e 's/$EMAIL_USE_SSL/'$EMAIL_USE_SSL'/' \
-i /tmp/taiga-conf/config.py
fi

if [ "$EMAIL_HOST" ];then
sed -e 's/$EMAIL_HOST/'$EMAIL_HOST'/' \
-i /tmp/taiga-conf/config.py
fi

if [ "$EMAIL_PORT" ];then
sed -e 's/$EMAIL_PORT/'$EMAIL_PORT'/' \
-i /tmp/taiga-conf/config.py
fi

if [ "$EMAIL_HOST_USER" ];then
sed -e 's/$EMAIL_HOST_USER/'$EMAIL_HOST_USER'/' \
-i /tmp/taiga-conf/config.py
fi

if [ "$EMAIL_HOST_PASSWORD" ];then
sed -e 's/$EMAIL_HOST_PASSWORD/'$EMAIL_HOST_PASSWORD'/' \
-i /tmp/taiga-conf/config.py
fi

cp /tmp/taiga-conf/config.py /taiga-conf/
ln -sf /taiga-conf/config.py /srv/taiga/back/settings/local.py

Expand Down