| 1488 | FILES_MAX_BYTES = 10 * 1024 * 1024 * 1024 |
| 1489 | |
| 1490 | # --------------------------- |
| 1491 | # Security helpers (CSRF + per-request nonce + security headers) |
| 1492 | # --------------------------- |
| 1493 | # Dependency-free CSRF protection: |
| 1494 | # - A random token stored in the signed session cookie |
| 1495 | # - Automatically injected into POST forms (client-side) |
| 1496 | # - Automatically attached to same-origin POST/PUT/PATCH/DELETE fetch() calls |
| 1497 | # |
| 1498 | # This keeps the app Termux-friendly (no extra dependencies) while stopping |