diff options
author | Alexander_Kabui | 2024-01-03 19:29:04 +0300 |
---|---|---|
committer | Alexander_Kabui | 2024-01-03 19:29:04 +0300 |
commit | a227ee89544a4a12f63291a7ed6c203a715215ad (patch) | |
tree | 424262cca4f8b7c52974a3200a6a5c3a24e3ce65 /gn3/settings.py | |
parent | bc943ce0413e55d9a4903aea95baad86d808bf47 (diff) | |
download | genenetwork3-a227ee89544a4a12f63291a7ed6c203a715215ad.tar.gz |
fix fetch token error from curent app
Diffstat (limited to 'gn3/settings.py')
-rw-r--r-- | gn3/settings.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gn3/settings.py b/gn3/settings.py index ca4d271..15baae2 100644 --- a/gn3/settings.py +++ b/gn3/settings.py @@ -34,6 +34,7 @@ SECRET_KEY = "password" # gn2 results only used in fetching dataset info # FAHAMU API TOKEN +FAHAMU_AUTH_TOKEN = "" GN2_BASE_URL = "http://www.genenetwork.org/" @@ -54,6 +55,8 @@ GENOTYPE_FILES = os.environ.get( XAPIAN_DB_PATH = "xapian" # CROSS-ORIGIN SETUP + + def parse_env_cors(default): """Parse comma-separated configuration into list of strings.""" origins_str = os.environ.get("CORS_ORIGINS", None) @@ -62,6 +65,7 @@ def parse_env_cors(default): origin.strip() for origin in origins_str.split(",") if origin != ""] return default + CORS_ORIGINS = parse_env_cors("*") CORS_HEADERS = [ @@ -75,9 +79,9 @@ TEXTDIR = f"{GNSHARE}/web/ProbeSetFreeze_DataMatrix" ROUND_TO = 10 -MULTIPROCESSOR_PROCS = 6 # Number of processes to spawn +MULTIPROCESSOR_PROCS = 6 # Number of processes to spawn -AUTH_SERVER_URL="" +AUTH_SERVER_URL = "" AUTH_MIGRATIONS = "migrations/auth" AUTH_DB = os.environ.get( "AUTH_DB", f"{os.environ.get('HOME')}/genenetwork/gn3_files/db/auth.db") |