add session timeout
This commit is contained in:
parent
a60819b996
commit
08bc91dec4
2 changed files with 4 additions and 1 deletions
|
|
@ -13,5 +13,6 @@ mailman:
|
||||||
signup: True
|
signup: True
|
||||||
change_pw: True
|
change_pw: True
|
||||||
ldap: False
|
ldap: False
|
||||||
|
session_timeout: 3600
|
||||||
archiver:
|
archiver:
|
||||||
key: "{{ lookup('password', '/dev/null length=128') }}"
|
key: "{{ lookup('password', '/dev/null length=128') }}"
|
||||||
|
|
|
||||||
|
|
@ -39,8 +39,8 @@ MIDDLEWARE = (
|
||||||
'postorius.middleware.PostoriusMiddleware',
|
'postorius.middleware.PostoriusMiddleware',
|
||||||
{% if mailman.web.remote_user %}
|
{% if mailman.web.remote_user %}
|
||||||
'django.contrib.auth.middleware.PersistentRemoteUserMiddleware',
|
'django.contrib.auth.middleware.PersistentRemoteUserMiddleware',
|
||||||
# 'django.contrib.auth.middleware.RemoteUserMiddleware',
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
'django_auth_ldap_remoteuser.middleware.SessionTimeoutMiddleware',
|
||||||
)
|
)
|
||||||
|
|
||||||
# Application definition
|
# Application definition
|
||||||
|
|
@ -237,3 +237,5 @@ AUTH_LDAP_REQUIRE_GROUP = "{{ mailman.web.ldap.group_require|d('') }}"
|
||||||
AUTH_LDAP_DENY_GROUP = "{{ mailman.web.ldap.group_require|d('') }}"
|
AUTH_LDAP_DENY_GROUP = "{{ mailman.web.ldap.group_require|d('') }}"
|
||||||
AUTH_LDAP_USER_FLAGS_BY_GROUP = {{ mailman.web.ldap.mappings|d({})|to_json }}
|
AUTH_LDAP_USER_FLAGS_BY_GROUP = {{ mailman.web.ldap.mappings|d({})|to_json }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
SESSION_EXPIRE_SECONDS = {{ mailman.web.session_timeout }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue