From 6b377067e1e6966ba29fafddacfd4637a6f40d7c Mon Sep 17 00:00:00 2001 From: DJ Gillespie Date: Wed, 30 Aug 2023 22:32:35 -0600 Subject: [PATCH] added ssl header proxy setting to pass through https vs http properly to drf --- core/settings/production.py | 1 + 1 file changed, 1 insertion(+) diff --git a/core/settings/production.py b/core/settings/production.py index a957369..8860938 100644 --- a/core/settings/production.py +++ b/core/settings/production.py @@ -12,6 +12,7 @@ DATABASES = {"default": DEFAULT_CONNECTION, } # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = os.environ.get("SECRET_KEY") +SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https') # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True