feat: increase client_max_body_size to 60M for larger uploads

This commit is contained in:
2026-06-14 21:05:27 +08:00
parent 223b5bc5d0
commit 5cf2ab088c
+5
View File
@@ -5,6 +5,11 @@ server {
root /usr/share/nginx/html;
index index.html;
# Allow uploads up to 60 MB (backend limit is 50 MB by default,
# configured via MAX_UPLOAD_SIZE_MB; headroom for multipart overhead).
# nginx default is 1 MB, which causes 413 errors on large uploads.
client_max_body_size 60M;
# ── API proxy ─────────────────────────────────────────────────
# Container runtime (Docker/Podman) resolves backend:8000 via
# its built-in DNS. nginx caches the resolved IP at startup, so