All checks were successful
Build and Publish Docker Image / deploy (push) Successful in 1m40s
Disable default read and write timeouts (set to 0s) to prevent Go from prematurely closing connections during large multi-GB uploads. Introduce `WARPBOX_READ_HEADER_TIMEOUT` (defaulting to 15s) to protect against slowloris-style attacks while still allowing long-running uploads to complete. Update documentation and example configurations accordingly.
35 lines
1.0 KiB
Plaintext
35 lines
1.0 KiB
Plaintext
WARPBOX_APP_NAME=warpbox.dev
|
|
WARPBOX_ENV=development
|
|
WARPBOX_ADDR=:8080
|
|
WARPBOX_BASE_URL=http://localhost:8080
|
|
WARPBOX_DATA_DIR=./data
|
|
WARPBOX_ADMIN_TOKEN=change-me
|
|
WARPBOX_JOBS_ENABLED=true
|
|
WARPBOX_CLEANUP_ENABLED=true
|
|
WARPBOX_CLEANUP_EVERY=1h
|
|
WARPBOX_THUMBNAIL_ENABLED=true
|
|
WARPBOX_THUMBNAIL_EVERY=1m
|
|
WARPBOX_MAX_UPLOAD_SIZE_MB=16384
|
|
WARPBOX_ANONYMOUS_UPLOADS_ENABLED=true
|
|
WARPBOX_ANONYMOUS_MAX_UPLOAD_MB=512
|
|
WARPBOX_ANONYMOUS_DAILY_UPLOAD_MB=2048
|
|
WARPBOX_USER_DAILY_UPLOAD_MB=8192
|
|
WARPBOX_DEFAULT_USER_STORAGE_MB=51200
|
|
WARPBOX_USAGE_RETENTION_DAYS=30
|
|
WARPBOX_LOCAL_STORAGE_MAX_GB=100
|
|
WARPBOX_ANONYMOUS_MAX_DAYS=30
|
|
WARPBOX_USER_MAX_DAYS=90
|
|
WARPBOX_ANONYMOUS_DAILY_BOXES=100
|
|
WARPBOX_USER_DAILY_BOXES=250
|
|
WARPBOX_ANONYMOUS_ACTIVE_BOXES=500
|
|
WARPBOX_USER_ACTIVE_BOXES=1000
|
|
WARPBOX_SHORT_WINDOW_REQUESTS=60
|
|
WARPBOX_SHORT_WINDOW_SECONDS=60
|
|
WARPBOX_ANONYMOUS_STORAGE_BACKEND=local
|
|
WARPBOX_USER_STORAGE_BACKEND=local
|
|
WARPBOX_READ_HEADER_TIMEOUT=15s
|
|
WARPBOX_READ_TIMEOUT=0s
|
|
WARPBOX_WRITE_TIMEOUT=0s
|
|
WARPBOX_IDLE_TIMEOUT=120s
|
|
WARPBOX_TRUSTED_PROXIES=
|