feat: harden attachment storage for level 4

This commit is contained in:
EgorAnti
2026-11-11 21:20:45 +03:00
parent e06678b6a9
commit 90a689661b
27 changed files with 650 additions and 14 deletions
+7
View File
@@ -20,3 +20,10 @@ MINIO_ROOT_USER=minio-root
MINIO_ROOT_PASSWORD=replace-with-a-different-long-random-root-secret
MAX_UPLOAD_BYTES=10485760
MAX_IMAGE_PIXELS=40000000
MAX_CONCURRENT_UPLOADS=3
UPLOAD_PERMIT_WAIT_MILLIS=10000
# Orphans younger than this are never deleted: protects the S3 PUT -> DB COMMIT window.
ATTACHMENT_CLEANUP_GRACE_SECONDS=3600
ATTACHMENT_CLEANUP_DRY_RUN=false
ATTACHMENT_RECONCILE_INTERVAL_MILLIS=600000
ATTACHMENT_RECONCILE_INITIAL_DELAY_MILLIS=60000