This commit is contained in:
2021-11-11 13:31:27 +01:00
commit b92ac6b19f
9 changed files with 413 additions and 0 deletions

22
src/config.py Normal file
View File

@@ -0,0 +1,22 @@
#!/usr/bin/env python3
import os
"""
Main Flask RESTful API
"""
__author__ = "@tormakris"
__copyright__ = "Copyright 2021, KMLabz Team"
__module_name__ = "config"
__version__text__ = "1"
class Config:
PORT = 8080
DEBUG = os.environ.get("DEBUG", "true").lower() in ["true", "yes", "1"]
SENTRY_DSN = os.environ.get("SENTRY_DSN")
RELEASE_ID = os.environ.get("RELEASE_ID", "test")
RELEASEMODE = os.environ.get("RELEASEMODE", "dev")
REDIS_URL = os.environ['CACHE_REDIS_URL']