From 53b900e97c90e2731e2dde1ecdfb58045fafa780 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Mon, 1 Sep 2014 11:49:21 +0200 Subject: [PATCH] Fix ALLOWED_HOSTS and SECURE_PROXY_SSL_HEADER in authentic2 configuration --- config/authentic2/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/authentic2/config.py b/config/authentic2/config.py index 96fe95d..6b4ed1e 100644 --- a/config/authentic2/config.py +++ b/config/authentic2/config.py @@ -8,7 +8,7 @@ CACHE_BACKEND={ 'LOCATION': '127.0.0.1:11211' } USE_X_FORWARDED_HOST=True -ALLOWED_HOSTS='idptest.amue.fr:idp.amue.fr' +ALLOWED_HOSTS=['idptest.amue.fr', 'idp.amue.fr'] LDAP_AUTH_SETTINGS=[ { "url": "ldap://194.167.237.11", @@ -38,3 +38,4 @@ LDAP_AUTH_SETTINGS=[ ] } ] +SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTOCOL', 'https')