Rewrite to Quart web-framework, refactor code.

This commit is contained in:
dsc 2022-03-12 14:46:31 +02:00
parent 6b300fd304
commit 67f4c34604
39 changed files with 656 additions and 980 deletions

23
settings.py_example Normal file
View file

@ -0,0 +1,23 @@
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"
}