""" Default configuration for fatcat web interface (Flask application). In production, we currently reconfigure these values using environment variables, not by (eg) deploying a variant copy of this file. This config is *only* for the web interface, *not* for any of the workers or import scripts. """ import os import subprocess 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") # can set this to https://search.fatcat.wiki for some experimentation ELASTIC_BACKEND = os.environ.get("ELASTIC_BACKEND", default="http://localhost:9200") ELASTIC_INDEX = os.environ.get("ELASTIC_INDEX", default="fatcat") # "Event more verbose" debug options. SECRET_KEY is bogus. #SQLALCHEMY_ECHO = True #SECRET_KEY = "kuhy0284hflskjhg01284" #DEBUG = True