From 740c03e7316d44bdb1a3d05adbd9133fc9def11e Mon Sep 17 00:00:00 2001 From: Oliver Falk Date: Fri, 16 Nov 2018 13:23:18 +0100 Subject: [PATCH] Set option to use proxy set value from X_FORWARDED_HOST --- config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config.py b/config.py index 4866404..9bec80d 100644 --- a/config.py +++ b/config.py @@ -132,3 +132,5 @@ if os.path.isfile(os.path.join(BASE_DIR, 'config_local.py')): from config_local import * # noqa # flake8: noqa # NOQA # pragma: no cover SESSION_SERIALIZER = 'django.contrib.sessions.serializers.PickleSerializer' + +USE_X_FORWARDED_HOST = True