diff options
author | Pjotr Prins | 2020-04-30 13:53:44 -0500 |
---|---|---|
committer | Pjotr Prins | 2020-04-30 13:53:44 -0500 |
commit | 421848837d3b489762bb9e58e5e7047d02cdb20b (patch) | |
tree | 243eb730e0bc1c10a1416394927c71ea5f73ddf2 /etc/default_settings.py | |
parent | 2e4ca1f6732d14c0ce0d953f1c08ecb000a94747 (diff) | |
parent | 86d885f5f2e1069a5b1606296a71992805486aec (diff) | |
download | genenetwork2-421848837d3b489762bb9e58e5e7047d02cdb20b.tar.gz |
Merge branch 'testing' of github.com:genenetwork/genenetwork2 into testing.3
Diffstat (limited to 'etc/default_settings.py')
-rw-r--r-- | etc/default_settings.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/etc/default_settings.py b/etc/default_settings.py index 64a78686..f368237b 100644 --- a/etc/default_settings.py +++ b/etc/default_settings.py @@ -32,7 +32,7 @@ GN_SERVER_URL = "http://localhost:8880/" # REST API server SQL_URI = "mysql://gn2:mysql_password@localhost/db_webqtl_s" SQL_ALCHEMY_POOL_RECYCLE = 3600 GN_SERVER_URL = "http://localhost:8880/" # REST API server -GN2_BASE_URL = "http://genenetwork.org/" +GN2_BASE_URL = "http://genenetwork.org/" # to pick up REST API GN2_BRANCH_URL = GN2_BASE_URL # ---- Flask configuration (see website) @@ -44,7 +44,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" |