You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

23 lines
633 B

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"
}