add support for SESSION_COOKIE_AGE in supann.conf
This commit is contained in:
parent
3dc69ed7b2
commit
a8938b7305
|
@ -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():
|
||||
|
|
|
@ -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))
|
||||
|
|
Reference in New Issue