fix dla xiastek not secure

This commit is contained in:
Mateusz Gruszczyński
2025-07-26 23:29:05 +02:00
parent 7e69610981
commit b7b6453b42
2 changed files with 9 additions and 0 deletions

View File

@@ -30,6 +30,7 @@ class Config:
SESSION_TIMEOUT_MINUTES = int(os.environ.get("SESSION_TIMEOUT_MINUTES", "10080") or "10080")
except ValueError:
SESSION_TIMEOUT_MINUTES = 10080
SESSION_COOKIE_SECURE = os.environ.get("SESSION_COOKIE_SECURE", "0") == "1"
ENABLE_HSTS = os.environ.get("ENABLE_HSTS", "0") == "1"
ENABLE_XFO = os.environ.get("ENABLE_XFO", "0") == "1"