From 5f50fcfcf5908b742e0d7dc67faf0f881f7ac412 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 14 Mar 2019 18:01:41 +0100 Subject: [PATCH] detect HTTPS from reverse proxy --- passbook/core/settings.py | 1 + 1 file changed, 1 insertion(+) diff --git a/passbook/core/settings.py b/passbook/core/settings.py index d939d1037..b5b42ef78 100644 --- a/passbook/core/settings.py +++ b/passbook/core/settings.py @@ -35,6 +35,7 @@ SECRET_KEY = CONFIG.get('secret_key') DEBUG = CONFIG.get('debug') INTERNAL_IPS = ['127.0.0.1'] ALLOWED_HOSTS = CONFIG.get('domains', []) +SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https') LOGIN_URL = 'passbook_core:auth-login' # CSRF_FAILURE_VIEW = 'passbook.core.views.errors.CSRFErrorView.as_view'