feat(nginx): 增加大文件上传支持

添加 client_max_body_size 配置以支持 ZIP 项目上传
This commit is contained in:
lintsinghua 2025-12-16 16:58:50 +08:00
parent e2109647bf
commit a27d37960a
1 changed files with 3 additions and 0 deletions

View File

@ -4,6 +4,9 @@ server {
root /usr/share/nginx/html; root /usr/share/nginx/html;
index index.html; index index.html;
# 允许上传大文件(用于 ZIP 项目上传)
client_max_body_size 500M;
# 处理 SPA 路由 # 处理 SPA 路由
location / { location / {
try_files $uri $uri/ /index.html; try_files $uri $uri/ /index.html;