diff options
author | Frederick Muriuki Muriithi | 2023-08-10 12:44:57 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2023-08-10 12:44:57 +0300 |
commit | d193cec7a8985a029b5cefea88cf76d3fe1cdc35 (patch) | |
tree | c58f45dc1123e1c1a92066331ba59819d53385ba /etc | |
parent | fbffae03945e15b3c0300e151a80a341616886ad (diff) | |
download | genenetwork2-d193cec7a8985a029b5cefea88cf76d3fe1cdc35.tar.gz |
Set up defaults and check for mandatory settings
Use etc/default_settings.py to setup defaults for the application.
Check for mandatory settings and notify users if any of the mandatory
settings are not defined.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/default_settings.py | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/etc/default_settings.py b/etc/default_settings.py index 38c0a110..0ffe6ae9 100644 --- a/etc/default_settings.py +++ b/etc/default_settings.py @@ -27,7 +27,7 @@ import sys with open("../etc/VERSION", "r") as version_file: GN_VERSION = version_file.read() -SECRET_KEY = "pleaseChangeThisToSomethingSecretInAnExternalConfigFileOrEnvvars" +SECRET_KEY = "" # Redis REDIS_URL = "redis://:@localhost:6379/0" @@ -43,6 +43,7 @@ GN_PROXY_URL="https://genenetwork.org/gn3-proxy/" SQL_URI = "mysql://gn2:mysql_password@localhost/db_webqtl_s" SQL_ALCHEMY_POOL_RECYCLE = 3600 GN_SERVER_URL = "http://localhost:8880/api/" # REST API server +AUTH_SERVER_URL="https://auth.genenetwork.org/" GN2_BASE_URL = "http://genenetwork.org/" # to pick up REST API GN2_BRANCH_URL = GN2_BASE_URL @@ -55,12 +56,7 @@ SECURITY_RECOVERABLE = True SECURITY_EMAIL_SENDER = "no-reply@genenetwork.org" SECURITY_POST_LOGIN_VIEW = "/thank_you" -# ---- 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 +SERVER_PORT = 5003 SECRET_HMAC_CODE = '\x08\xdf\xfa\x93N\x80\xd9\\H@\\\x9f`\x98d^\xb4a;\xc6OM\x946a\xbc\xfc\x80:*\xebc' |