Add optional CSRF enforcement for write routes
All checks were successful
docker / build-and-push (push) Successful in 49s
All checks were successful
docker / build-and-push (push) Successful in 49s
This commit is contained in:
@@ -36,6 +36,11 @@ The app expects a MariaDB instance configured through environment variables.
|
||||
|
||||
- `SESSION_TTL_SECONDS` (default: `86400`)
|
||||
- `SESSION_COOKIE_SECURE` (default: `false`, set `true` in production HTTPS)
|
||||
- `REQUIRE_CSRF` (default: `false`, checks same-origin/same-referer for write routes when enabled)
|
||||
- `LOGIN_MAX_ATTEMPTS` (default: `5`)
|
||||
- `LOGIN_WINDOW_SECONDS` (default: `300`)
|
||||
- `LOGIN_LOCKOUT_SECONDS` (default: `900`)
|
||||
- `MAX_ICON_BYTES` (default: `2097152`)
|
||||
|
||||
## Gitea CI/CD
|
||||
|
||||
|
||||
Reference in New Issue
Block a user