fix(api): 限制上传文件大小为8MB

- 后端新增中间件限制请求体最大为8MB,超出返回413错误
- nginx配置添加client_max_body_size为8m以支持8MB最大上传
- 更新favicon.svg图标样式
- 模型列表页默认分页大小由10改为50,提高一次加载条目数
This commit is contained in:
yangy
2026-05-25 13:25:05 +08:00
parent fb1aad45af
commit abab985769
4 changed files with 27 additions and 4 deletions
+3
View File
@@ -15,6 +15,9 @@ 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;
# 允许上传最大 8MB 的文件
client_max_body_size 8m;
}
# Handle Vue Router history mode