add support for SESSION_COOKIE_AGE in supann.conf

This commit is contained in:
Benjamin Dauvergne 2016-06-02 15:23:34 +02:00
parent 3dc69ed7b2
commit a8938b7305
2 changed files with 5 additions and 0 deletions

View File

@ -139,6 +139,8 @@ AUTHENTICATION_BACKENDS = (
# bypass authentic2 warning: "DEFAULT_FROM_EMAIL must be customized"
DEFAULT_FROM_EMAIL = 'root@localhost'
SESSION_COOKIE_AGE = int(os.environ.get('SESSION_COOKIE_AGE', 10 * 3600))
if os.environ.get('DEBUG') == '1':
DEBUG = True
for logger in LOGGING['loggers'].values():

View File

@ -82,3 +82,6 @@ export USE_TLS=0
#
# Is SLO supported ?
export ALLOW_SLO=0
# Durée des sessions
export SESSION_COOKIE_AGE=$((4 * 3600))