Handling fs

This commit is contained in:
Anaïs Saraiva
2026-08-15 10:31:52 +02:00
parent f1a8a05417
commit 12d9e99aa2
8 changed files with 64 additions and 17 deletions
+7 -2
View File
@@ -16,9 +16,14 @@ STORAGE_DIR=./storage
# case-insensitive). A request larger than this is rejected with 413.
MAX_FILE_SIZE=10GB
# Maximum fraction of the storage filesystem that may be used, from 0.0 to 1.0.
# When usage exceeds this ratio uploads are rejected with 503 "try again later".
# Default 0.5 = block uploads once more than 50% of the disk is used.
MAX_STORAGE_USAGE=0.5
# How long an uploaded file lives before it expires and is deleted.
# In milliseconds. Default is 1 week (604800000).
FILE_TTL_MS=604800000
# In milliseconds. Default and hard maximum is 48 hours (172800000).
FILE_TTL_MS=172800000
# Brute-force protection: rate limit per client IP on download and
# deletion endpoints. Set RATE_LIMIT_ENABLED=0 to disable.