From a27d37960a6651d48e7b28c4754996caf023118f Mon Sep 17 00:00:00 2001 From: lintsinghua Date: Tue, 16 Dec 2025 16:58:50 +0800 Subject: [PATCH] =?UTF-8?q?feat(nginx):=20=E5=A2=9E=E5=8A=A0=E5=A4=A7?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E4=B8=8A=E4=BC=A0=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加 client_max_body_size 配置以支持 ZIP 项目上传 --- frontend/nginx.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/nginx.conf b/frontend/nginx.conf index 9d8bfca..6bdf073 100644 --- a/frontend/nginx.conf +++ b/frontend/nginx.conf @@ -4,6 +4,9 @@ server { root /usr/share/nginx/html; index index.html; + # 允许上传大文件(用于 ZIP 项目上传) + client_max_body_size 500M; + # 处理 SPA 路由 location / { try_files $uri $uri/ /index.html;