From 9e8c03cc9429173f17b327aa65ea030794dc0491 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=AA=20Thanh=20Sang?= Date: Mon, 23 Oct 2017 14:48:28 +0700 Subject: [PATCH] Update settings.py Correct detect https for Amazon ALB proxy --- adl_lrs/settings.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/adl_lrs/settings.py b/adl_lrs/settings.py index b710ea32..09f94194 100644 --- a/adl_lrs/settings.py +++ b/adl_lrs/settings.py @@ -14,6 +14,9 @@ # If you want to debug DEBUG = config.getboolean('debug', 'DEBUG') +# Support proxy https (Ex: Amazon ALB) +SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https') + # Set these email values to send the reset password link # If you do not want this functionality just comment out the # Forgot Password? link in templates/registration/login.html