aboutsummaryrefslogtreecommitdiff
path: root/etc/default_settings.py
diff options
context:
space:
mode:
authorArthur Centeno2021-10-25 21:04:23 +0000
committerArthur Centeno2021-10-25 21:04:23 +0000
commit499a80f138030c4de1629c043c8f9401a99894ea (patch)
tree449dcae965d13f966fb6d52625fbc86661c8c6a0 /etc/default_settings.py
parent6151faa9ea67af4bf4ea95fb681a9dc4319474b6 (diff)
parent700802303e5e8221a9d591ba985d6607aa61e1ce (diff)
downloadgenenetwork2-499a80f138030c4de1629c043c8f9401a99894ea.tar.gz
Merge github.com:genenetwork/genenetwork2 into acenteno
Diffstat (limited to 'etc/default_settings.py')
-rw-r--r--etc/default_settings.py32
1 files changed, 19 insertions, 13 deletions
diff --git a/etc/default_settings.py b/etc/default_settings.py
index f368237b..8636f4db 100644
--- a/etc/default_settings.py
+++ b/etc/default_settings.py
@@ -19,13 +19,18 @@
#
# For GNU Guix deployment also check the paths in
#
-# ~/.guix-profile/lib/python2.7/site-packages/genenetwork2-2.0-py2.7.egg/etc/default_settings.py
+# ~/.guix-profile/lib/python3.8/site-packages/genenetwork2-2.0-py2.7.egg/etc/default_settings.py
import os
import sys
-GN_VERSION = open("../etc/VERSION","r").read()
-GN_SERVER_URL = "http://localhost:8880/" # REST API server
+GN_VERSION = open("../etc/VERSION", "r").read()
+
+# Redis
+REDIS_URL = "redis://:@localhost:6379/0"
+
+# gn2-proxy
+GN2_PROXY = "http://localhost:8080"
# ---- MySQL
@@ -73,23 +78,24 @@ SMTP_PASSWORD = "UNKNOWN"
# ---- Behavioural settings (defaults) note that logger and log levels can
# be overridden at the module level and with enviroment settings
-WEBSERVER_MODE = 'DEV' # Python webserver mode (DEBUG|DEV|PROD)
+WEBSERVER_MODE = 'DEV' # Python webserver mode (DEBUG|DEV|PROD)
WEBSERVER_BRANDING = None # Set the branding (nyi)
WEBSERVER_DEPLOY = None # Deployment specifics (nyi)
-WEBSERVER_URL = "http://localhost:"+str(SERVER_PORT)+"/" # external URL
+WEBSERVER_URL = "http://localhost:" + str(SERVER_PORT) + "/" # external URL
-LOG_LEVEL = 'WARNING' # Logger mode (DEBUG|INFO|WARNING|ERROR|CRITICAL)
+LOG_LEVEL = 'WARNING' # Logger mode (DEBUG|INFO|WARNING|ERROR|CRITICAL)
LOG_LEVEL_DEBUG = '0' # logger.debugf log level (0-5, 5 = show all)
-LOG_SQL = 'False' # Log SQL/backend and GN_SERVER calls
+LOG_SQL = 'False' # Log SQL/backend and GN_SERVER calls
LOG_SQL_ALCHEMY = 'False'
-LOG_BENCH = True # Log bench marks
+LOG_BENCH = True # Log bench marks
-USE_REDIS = True # REDIS caching (note that redis will be phased out)
-USE_GN_SERVER = 'False' # Use GN_SERVER SQL calls
-HOME = os.environ['HOME']
+USE_REDIS = True # REDIS caching (note that redis will be phased out)
+USE_GN_SERVER = 'False' # Use GN_SERVER SQL calls
+HOME = os.environ['HOME']
# ---- Default locations
-GENENETWORK_FILES = HOME+"/genotype_files" # base dir for all static data files
+# base dir for all static data files
+GENENETWORK_FILES = HOME + "/genotype_files"
# ---- Path overrides for Genenetwork - the defaults are normally
# picked up from Guix or in the HOME directory
@@ -98,7 +104,7 @@ GENENETWORK_FILES = HOME+"/genotype_files" # base dir for all static data fil
# PRIVATE_FILES = HOME+"/gn2_private_data" # private static data files (unused)
# ---- Local path to JS libraries - for development modules (only)
-JS_GN_PATH = os.environ['HOME']+"/genenetwork/javascript"
+JS_GN_PATH = os.environ['HOME'] + "/genenetwork/javascript"
# ---- GN2 Executables (overwrite for testing only)
# PLINK_COMMAND = str.strip(os.popen("which plink2").read())