backend/src/config.py

26 lines
583 B
Python
Raw Normal View History

2020-11-25 23:54:52 +01:00
#!/usr/bin/env python3
import os
"""
Configuration
"""
__author__ = "@tormakris"
__copyright__ = "Copyright 2020, onSpot Team"
__module_name__ = "config"
__version__text__ = "1"
PORT = os.environ.get("ONSPOT_PORT", 8080)
DEBUG = os.environ.get("ONSPOT_DEBUG", True)
2020-11-26 02:20:16 +01:00
ALLOWED_ORIGINS = os.environ.get('ALLOWED_ORIGINS', '*')
2020-11-25 23:54:52 +01:00
SENTRY_DSN = os.environ.get("SENTRY_DSN")
RELEASE_ID = os.environ.get("RELEASE_ID", "test")
RELEASEMODE = os.environ.get("ONSPOT_RELEASEMODE", "dev")
2020-11-26 01:56:41 +01:00
REDIS_URL = os.getenv("ONSPOT_REDIS_URL")
2020-11-25 23:54:52 +01:00
ENCODED_SECRET_KEY = os.getenv("ONSPOT_ENCODED_SECRET_KEY")