feat(upload): increase document upload size limits to 50MB across the application

This commit is contained in:
marshalyordanos
2026-08-11 09:26:23 +03:00
parent 577390ca6b
commit ea6eccbf09
9 changed files with 190 additions and 18 deletions

View File

@@ -11,6 +11,11 @@ server {
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
add_header Permissions-Policy "camera=(), microphone=(), geolocation=()" always;
# nginx defaults to 1m and answers anything larger with its own HTML 413
# before the request reaches an upstream. Kept in step with the 50MB
# per-document ceiling the API enforces (DOCUMENT_UPLOAD_MAX_BYTES).
client_max_body_size 50m;
gzip on;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/wasm;
gzip_min_length 1024;