fix(restore): allow backups of any size

- default BACKUP_UPLOAD_LIMIT_MB to 0 (no hard cap, disk is the limit);
  a positive value still enables multer fileSize
- scale request timeout by the configured limit and keep up to 24h when
  unlimited, cap headersTimeout at 120s
- check Content-Length and free space before upload (413/507) and map
  multer ENOSPC to 507
- drop the hardcoded 500 MB fallback in the settings restore pre-check
- cover new limit/timeout helpers in backup.selftest.js
- update env template, compose, README, AGENTS and API docs
This commit is contained in:
dev
2026-10-21 18:13:24 +03:00
parent 19f63a4064
commit 697aac9b87
9 changed files with 106 additions and 25 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ services:
ADMIN_PASSWORD: ${ADMIN_PASSWORD}
ADMIN_USERNAME: ${ADMIN_USERNAME:-admin}
CERT_HOSTNAMES: ${CERT_HOSTNAMES:-}
BACKUP_UPLOAD_LIMIT_MB: ${BACKUP_UPLOAD_LIMIT_MB:-500}
BACKUP_UPLOAD_LIMIT_MB: ${BACKUP_UPLOAD_LIMIT_MB:-0}
UPLOAD_FILE_LIMIT_MB: ${UPLOAD_FILE_LIMIT_MB:-50}
UPLOAD_TOTAL_LIMIT_MB: ${UPLOAD_TOTAL_LIMIT_MB:-200}
UPLOAD_REQUEST_TIMEOUT_MS: ${UPLOAD_REQUEST_TIMEOUT_MS:-}