Handling fs
This commit is contained in:
+7
-2
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user