dev: add is multi cloud flag and ssl redirection (#235)

This commit is contained in:
Nikhil
2024-05-10 17:32:55 +05:30
committed by GitHub
parent a816f9336a
commit adb1b4d266

View File

@@ -12,8 +12,10 @@ SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
INSTALLED_APPS += ("scout_apm.django",) # noqa
# Honor the 'X-Forwarded-Proto' header for request.is_secure()
SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
if os.environ.get("IS_MULTI_CLOUD"):
SECURE_SSL_REDIRECT = True
else:
SECURE_SSL_REDIRECT = False
# Scout Settings
SCOUT_MONITOR = os.environ.get("SCOUT_MONITOR", False)