feat: files up to 4 GB again (Dropstar, 2026-10-28)
All checks were successful
Build and deploy / Validate source (push) Successful in 1m5s
Build and deploy / Integration suite on a real stack (push) Successful in 5m22s
Build and deploy / Secret scan and release gate (push) Successful in 9s
Build and deploy / Publish images (push) Successful in 1m24s

It was 5 GB, then 1 GB from 2026-10-21. ClamAV keeps scanning up to its own
2000 MiB limit; a larger file passes by the file-format check, as before
the 1 GB limit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Cauê Faleiros
2026-10-28 09:58:42 -03:00
parent 312e1e3aa3
commit ee6344dc74
10 changed files with 20 additions and 19 deletions

View File

@@ -132,17 +132,17 @@ x-app-environment: &app-environment
ALLOWED_HOSTS: ${SITE_DOMAIN:?set SITE_DOMAIN},${KANBAN_DOMAIN:?set KANBAN_DOMAIN}
ALLOWED_ORIGINS: https://${SITE_DOMAIN:?set SITE_DOMAIN},https://${KANBAN_DOMAIN:?set KANBAN_DOMAIN}
COOKIE_SECURE: "true"
# 1 GB per file (Dropstar, 2026-10-21): a 57 cm x 5 m sheet at 300 DPI is
# 200 to 300 MB, and much more takes an hour to send on a common connection.
MAX_UPLOAD_BYTES: "1073741824"
# 4 GB per file (Dropstar, 2026-10-28; it was 5 GB, then 1 GB from 2026-10-21).
MAX_UPLOAD_BYTES: "4294967296"
UPLOAD_PART_BYTES: "8388608"
# Sheets of several GB are the normal order, so room for many of them.
STORAGE_QUOTA_BYTES: "${STORAGE_QUOTA_BYTES:-536870912000}"
OWNER_UPLOAD_QUOTA_BYTES: "${OWNER_UPLOAD_QUOTA_BYTES:-53687091200}"
MAX_PENDING_UPLOADS: "10"
# ClamAV scans up to this, so every file up to MAX_UPLOAD_BYTES is scanned;
# a larger one would be released after a file-format check (app/scanning.py).
SCAN_MAX_BYTES: "1073741824"
# ClamAV scans up to its own limit, 2000 MiB (infra/clamd.conf); a larger
# file, up to the 4 GB above, is released after the file-format check
# (app/scanning.py, check_large).
SCAN_MAX_BYTES: "2097152000"
services:
db: