mirror of
https://github.com/makeplane/plane.git
synced 2026-02-24 04:00:14 +01:00
dev: add is multi cloud flag and ssl redirection (#235)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user