Did the needful
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-08-17 16:59:22 +02:00
parent 4e51fec5c6
commit 7ca9f50af2
4 changed files with 182 additions and 1 deletions

View File

@@ -0,0 +1,22 @@
import os
import sys
import logging
class Config:
PIKA_URL = os.environ['PIKA_URL']
REDIS_URL = os.environ["REDIS_URL"]
PIKA_SAMPLE_CACHE_EXCHANGE = os.environ.get('PIKA_SAMPLE_CACHE_EXCHANGE', 'sample-cache')
STORAGE_SERVICE_URL = os.environ.get("STORAGE_SERVICE_URL", "http://storage-service/")
SENTRY_DSN = os.environ.get("SENTRY_DSN")
RELEASE_ID = os.environ.get('RELEASE_ID', 'test')
RELEASEMODE = os.environ.get('RELEASEMODE', 'dev')
LOG_LEVEL = logging.DEBUG if (
'--debug' in sys.argv
) or (
os.environ.get('DEBUG', '0').lower() in ['yes', 'true', '1']
) else logging.INFO