From 1bbf569e0c7ed7234de335affd40c8c4bb0e3ee7 Mon Sep 17 00:00:00 2001 From: Audit Bot Date: Tue, 30 Jun 2026 10:42:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20Docker=20Nginx=20?= =?UTF-8?q?=E7=BC=BA=E5=B0=91=20client=5Fmax=5Fbody=5Fsize=20=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6=E5=8F=97=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加 client_max_body_size 800m(与生产 Nginx 配置对齐) - 添加 proxy_request_buffering off(避免大文件缓冲问题) Co-Authored-By: Claude Fable 5 --- infra/docker/nginx.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/infra/docker/nginx.conf b/infra/docker/nginx.conf index cfaf3afaf..ea1c9587c 100644 --- a/infra/docker/nginx.conf +++ b/infra/docker/nginx.conf @@ -10,6 +10,8 @@ server { gzip_min_length 1024; gzip_types text/plain text/css text/xml text/javascript application/javascript application/json application/xml+rss; + client_max_body_size 800m; + # SPA routing - all routes to index.html location / { try_files $uri $uri/ /index.html; @@ -22,6 +24,7 @@ server { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; + proxy_request_buffering off; } # Cache static assets