You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
532 B
Python
19 lines
532 B
Python
2 years ago
|
from os import environ as env
|
||
|
from secrets import token_urlsafe
|
||
|
from dotenv import load_dotenv
|
||
|
|
||
2 years ago
|
DEBUG = 1 == env.get("DEBUG", 1)
|
||
|
if DEBUG:
|
||
|
load_dotenv()
|
||
2 years ago
|
|
||
2 years ago
|
HOST = env.get("HOST", "127.0.0.1")
|
||
2 years ago
|
TEMPLATES_AUTO_RELOAD = True
|
||
|
QUART_ENV = env.get("QUART_ENV", "development")
|
||
|
SECRET_KEY = env.get("SECRET_KEY", token_urlsafe(12))
|
||
2 years ago
|
QUART_AUTH_DURATION = int(env.get('QUART_AUTH_DURATION', 60 * 60)) # 1 hour
|
||
2 years ago
|
|
||
|
# LWS
|
||
|
LWS_URL = env.get("LWS_URL", "http://127.0.0.1:8080")
|
||
2 years ago
|
LWS_ADMIN_URL = env.get("LWS_ADMIN_URL", "http://127.0.0.1:8081")
|
||
|
|