summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--settings.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/settings.py b/settings.py
index 8f71885..2482054 100644
--- a/settings.py
+++ b/settings.py
@@ -6,6 +6,11 @@ from version import VERSION
DEBUG = True
+# if we're running in docker, there's a proxy involved.
+if os.path.exists("/.dockerenv"):
+ USE_X_FORWARDED_HOST=True
+ SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
+
PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__))
ROOT_DIR = os.path.split(PROJECT_ROOT)[-1]
ROOT_PATH = os.path.dirname(os.path.abspath(__file__))