mirror of
https://git.wownero.com/wownero/YellWOWPages.git
synced 2024-08-15 01:03:25 +00:00
Rewrite to Quart web-framework, refactor code.
This commit is contained in:
parent
6b300fd304
commit
67f4c34604
39 changed files with 656 additions and 980 deletions
23
settings.py_example
Normal file
23
settings.py_example
Normal 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"
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue