new version

This commit is contained in:
Anaïs Saraiva
2026-08-16 16:04:26 +02:00
parent a6ff57e5d5
commit c6a96b08c3
7 changed files with 33 additions and 6 deletions
+1
View File
@@ -51,6 +51,7 @@ cp .env.example .env
| `MAX_FILE_SIZE` | `10GB` | Max upload size. Units: `B`, `KB`, `MB`, `GB`, `TB` (or plain int). |
| `MAX_STORAGE_USAGE` | `0.5` | Max fraction (0.0–1.0) of the storage disk that may be used; uploads are rejected with `503 try again later` above this. |
| `FILE_TTL_MS` | `172800000` | Milliseconds before an upload expires and is deleted (48 hours, hard maximum). |
| `KEY_LENGTH` | `8` | Length in characters of the upload/download key token (a-z0-9). |
| `RATE_LIMIT_ENABLED` | `1` | Enable per-IP rate limiting on `/(key)` and `/api/files/`. |
| `RATE_LIMIT_MAX` | `300` | Max requests per IP per window. |
| `RATE_LIMIT_WINDOW_MS` | `60000` | Rate-limit window length in ms. |