From 44d89e3b73d0c8fc8bd397a7c1e61529c49b201d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E5=BB=BA=E6=AD=A6?= Date: Thu, 15 May 2025 11:34:39 +0800 Subject: [PATCH] =?UTF-8?q?feat(nginx):=20=E8=B0=83=E6=95=B4=E5=AE=A2?= =?UTF-8?q?=E6=88=B7=E7=AB=AF=E8=AF=B7=E6=B1=82=E4=BD=93=E5=A4=A7=E5=B0=8F?= =?UTF-8?q?=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 设置 client_max_body_size 为 10G,允许上传大文件- 设置 client_body_buffer_size 为 128k,优化请求体缓冲 --- nginx/default.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nginx/default.conf b/nginx/default.conf index 63190a4..ba0a616 100644 --- a/nginx/default.conf +++ b/nginx/default.conf @@ -1,6 +1,7 @@ server { listen 80; - + client_max_body_size 10G; + client_body_buffer_size 128k; # 所有非 /api 请求全部代理给 frontend 容器 location / { proxy_pass http://frontend:80;