summaryrefslogtreecommitdiffstats
path: root/python/web_config.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-01-03 20:45:29 -0800
committerBryan Newbold <bnewbold@robocracy.org>2019-01-03 20:45:29 -0800
commit422a8cc47489aa44b852ff0add1ef6ea63cfc1ff (patch)
tree6640c13f10271cffe8e442e1fc75202d032121ca /python/web_config.py
parent1cb3b1afa8df555d890cc556751222cf22c22696 (diff)
downloadfatcat-422a8cc47489aa44b852ff0add1ef6ea63cfc1ff.tar.gz
fatcat-422a8cc47489aa44b852ff0add1ef6ea63cfc1ff.zip
several auth improvements
Diffstat (limited to 'python/web_config.py')
-rw-r--r--python/web_config.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/python/web_config.py b/python/web_config.py
index 91e43e70..5713738c 100644
--- a/python/web_config.py
+++ b/python/web_config.py
@@ -17,14 +17,19 @@ 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 = os.environ.get("FATCAT_DOMAIN", default="qa.fatcat.wiki")
+ FATCAT_API_AUTH_TOKEN = os.environ.get("FATCAT_API_AUTH_TOKEN", default=None)
+ FATCAT_API_HOST = os.environ.get("FATCAT_API_HOST", default="https://{}/v0".format(FATCAT_DOMAIN))
+
# can set this to https://search.fatcat.wiki for some experimentation
ELASTICSEARCH_BACKEND = os.environ.get("ELASTICSEARCH_BACKEND", default="http://localhost:9200")
ELASTICSEARCH_INDEX = os.environ.get("ELASTICSEARCH_INDEX", default="fatcat")
- # bogus values for dev/testing
- SECRET_KEY = os.environ.get("SECRET_KEY", default="mQLO6DpyR4t91G1tl/LPMvb/5QFV9vIUDZah5PapTUSmP8jVIrvCRw")
+ # for flask things, like session cookies
+ FLASK_SECRET_KEY = os.environ.get("FLASK_SECRET_KEY", default=None)
+ SECRET_KEY = FLASK_SECRET_KEY
GITLAB_CLIENT_ID = os.environ.get("GITLAB_CLIENT_ID", default="bogus")
GITLAB_CLIENT_SECRET = os.environ.get("GITLAB_CLIENT_SECRET", default="bogus")