aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorPjotr Prins2020-04-27 17:12:54 -0500
committerPjotr Prins2020-04-27 17:13:03 -0500
commite05b70e1a9aaea5e71d4f616ad86e5625a0cdb4c (patch)
tree8240b9095e690503e896ace3670d747fe98c0df5 /etc
parentc47ed36e165fd39c1064df85c14cf6c5db99ef44 (diff)
downloadgenenetwork2-e05b70e1a9aaea5e71d4f616ad86e5625a0cdb4c.tar.gz
settings: force SERVER_PORT to align with environment variable
Diffstat (limited to 'etc')
-rw-r--r--etc/default_settings.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/etc/default_settings.py b/etc/default_settings.py
index 053b906d..176ee59c 100644
--- a/etc/default_settings.py
+++ b/etc/default_settings.py
@@ -40,7 +40,13 @@ SECURITY_RECOVERABLE = True
SECURITY_EMAIL_SENDER = "no-reply@genenetwork.org"
SECURITY_POST_LOGIN_VIEW = "/thank_you"
-SERVER_PORT = 5003 # running on localhost
+# ---- SERVER_PORT needs an override before firing up the server
+SERVER_PORT = os.environ['SERVER_PORT']
+if isinstance(SERVER_PORT, str):
+ SERVER_PORT = int(SERVER_PORT) # don't do this for other settings!
+else:
+ SERVER_PORT = 5003
+
SECRET_HMAC_CODE = '\x08\xdf\xfa\x93N\x80\xd9\\H@\\\x9f`\x98d^\xb4a;\xc6OM\x946a\xbc\xfc\x80:*\xebc'
GITHUB_CLIENT_ID = "UNKNOWN"