Jul 22 - Update - add audit viewer, CSRF lifetime
This commit is contained in:
@@ -35,3 +35,9 @@ class Config:
|
||||
|
||||
# Path to the auth log fail2ban watches. Empty -> <appdir>/logs/auth.log
|
||||
AUTH_LOG_PATH = os.environ.get("AUTH_LOG_PATH", "")
|
||||
|
||||
# CSRF token lifetime in seconds. Flask-WTF defaults to 3600 (1h), which can
|
||||
# 400 a long edit on save. Blank/None -> token is valid for the whole session
|
||||
# (still single-use-per-session and cookie-bound). Set an integer to override.
|
||||
_csrf_ttl = os.environ.get("WTF_CSRF_TIME_LIMIT", "").strip()
|
||||
WTF_CSRF_TIME_LIMIT = int(_csrf_ttl) if _csrf_ttl.isdigit() else None
|
||||
|
||||
Reference in New Issue
Block a user