0.4.9-b
All checks were successful
Deploy on push / deploy (push) Successful in 2m38s

This commit is contained in:
2025-02-09 22:26:50 +03:00
parent 37a9a284ef
commit 4a835bbfba
17 changed files with 1082 additions and 36 deletions

View File

@@ -5,7 +5,7 @@ PORT = 8000
DB_URL = (
environ.get("DATABASE_URL", "").replace("postgres://", "postgresql://")
or environ.get("DB_URL", "").replace("postgres://", "postgresql://")
or "sqlite:///discoursio-db.sqlite3"
or "sqlite:///discoursio.db"
)
REDIS_URL = environ.get("REDIS_URL") or "redis://127.0.0.1"
AUTH_URL = environ.get("AUTH_URL") or ""
@@ -15,3 +15,9 @@ MODE = "development" if "dev" in sys.argv else "production"
ADMIN_SECRET = environ.get("AUTH_SECRET") or "nothing"
WEBHOOK_SECRET = environ.get("WEBHOOK_SECRET") or "nothing-else"
# own auth
ONETIME_TOKEN_LIFE_SPAN = 60 * 60 * 24 * 3 # 3 days
SESSION_TOKEN_LIFE_SPAN = 60 * 60 * 24 * 30 # 30 days
JWT_ALGORITHM = "HS256"
JWT_SECRET_KEY = environ.get("JWT_SECRET") or "nothing-else-jwt-secret-matters"