22 lines
542 B
Python
22 lines
542 B
Python
|
# ktvmanager/config.py
|
||
|
|
||
|
import os
|
||
|
|
||
|
class Config:
|
||
|
DEBUG = False
|
||
|
TESTING = False
|
||
|
SECRET_KEY = os.environ.get('SECRET_KEY', 'my_secret_key')
|
||
|
HOST = '0.0.0.0'
|
||
|
PORT = 3001
|
||
|
DBHOST = os.getenv("DBHOST")
|
||
|
DBUSER = os.getenv("DBUSER")
|
||
|
DBPASS = os.getenv("DBPASS")
|
||
|
DATABASE = os.getenv("DATABASE")
|
||
|
DBPORT = os.getenv("DBPORT")
|
||
|
STREAM_URLS = ["http://example.com", "http://example.org"]
|
||
|
|
||
|
class DevelopmentConfig(Config):
|
||
|
DEBUG = True
|
||
|
|
||
|
class ProductionConfig(Config):
|
||
|
PORT = os.environ.get('PORT', 5000)
|