import os cwd = os.path.dirname(os.path.realpath(__file__)) def bool_env(val): return val is True or (isinstance(val, str) and (val.lower() == 'true' or val == '1')) DEBUG = bool_env(os.environ.get("DEBUG", False)) HOST = os.environ.get("HOST", "127.0.0.1") PORT = int(os.environ.get("PORT", 8080)) APP_SECRET = os.environ.get("APP_SECRET") REDIS_URI = os.environ.get("REDIS_URI", "redis://localhost:6379") DB_PATH = os.path.join(cwd, "data", "db.sqlite3") OPENID_CFG = { "client_id": "", "client_secret": "", "configuration": "https://login.wownero.com/auth/realms/master/.well-known/openid-configuration" }