aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-11-13 21:15:18 -0800
committerBryan Newbold <bnewbold@robocracy.org>2018-11-13 21:15:18 -0800
commitff0053e3652012ee98412780fb6f82b367bf9400 (patch)
tree254cb9038c238457904f4bcf0b5b2c915cde5918 /python
parent78299832bcd514526494457b266b65de2ab74c51 (diff)
downloadfatcat-ff0053e3652012ee98412780fb6f82b367bf9400.tar.gz
fatcat-ff0053e3652012ee98412780fb6f82b367bf9400.zip
load more config from env
Diffstat (limited to 'python')
-rw-r--r--python/web_config.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/python/web_config.py b/python/web_config.py
index c213e59f..2bb000eb 100644
--- a/python/web_config.py
+++ b/python/web_config.py
@@ -7,9 +7,9 @@ basedir = os.path.abspath(os.path.dirname(__file__))
class Config(object):
GIT_REVISION = subprocess.check_output(["git", "describe", "--always"]).strip()
# This is, effectively, the QA/PROD flag
- FATCAT_DOMAIN = "qa.fatcat.wiki"
- ELASTIC_BACKEND = "https://search.fatcat.wiki"
- ELASTIC_INDEX = "fatcat"
+ FATCAT_DOMAIN = os.environ.get("FATCAT_DOMAIN", default="qa.fatcat.wiki")
+ ELASTIC_BACKEND = os.environ.get("ELASTIC_BACKEND", default="https://search.fatcat.wiki")
+ ELASTIC_INDEX = os.environ.get("ELASTIC_INDEX", default="fatcat")
# "Event more verbose" debug options. SECRET_KEY is bogus.
#SQLALCHEMY_ECHO = True