aboutsummaryrefslogtreecommitdiffstats
path: root/python/config.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-09-26 21:19:21 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-09-26 21:22:47 -0700
commit25482954f473061ef3d480512a4b26c119036874 (patch)
treeb10db8373598897d2e41691bb673285ba5783d5d /python/config.py
parent35e731d4cf3e1ca832210bbf9a67b7c89517e3dc (diff)
downloadfatcat-25482954f473061ef3d480512a4b26c119036874.tar.gz
fatcat-25482954f473061ef3d480512a4b26c119036874.zip
have domain URLs be configurable
Diffstat (limited to 'python/config.py')
-rw-r--r--python/config.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/python/config.py b/python/config.py
index 684734f0..cb2c7bf0 100644
--- a/python/config.py
+++ b/python/config.py
@@ -8,9 +8,11 @@ class Config(object):
SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URI') or \
'sqlite:///' + os.path.join(basedir, 'fatcat_dev.sqlite')
SQLALCHEMY_TRACK_MODIFICATIONS = False
- ELASTIC_BACKEND = "http://search.qa.fatcat.wiki:8088"
- ELASTIC_INDEX = "crossref-works"
GIT_REVISION = subprocess.check_output(["git", "describe", "--always"]).strip()
+ # This is, effectively, the QA/PROD flag
+ FATCAT_DOMAIN = "qa.fatcat.wiki"
+ ELASTIC_INDEX = "crossref-works"
+ ELASTIC_BACKEND = "http://search.{}:8088".format(FATCAT_DOMAIN)
# "Event more verbose" debug options. SECRET_KEY is bogus.
#SQLALCHEMY_ECHO = True