added ssl header proxy setting to pass through https vs http properly to drf

This commit is contained in:
DJ Gillespie 2023-08-30 22:32:35 -06:00
parent eee001e32b
commit 6b377067e1

View File

@ -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