fix: 取消附件上传超时并放宽代理限制,避免慢网大文件上传中断。

This commit is contained in:
zlwu committed 2026-10-29 16:01:26 +08:00
1 parent 8020e667f1
commit 8321246765
6 files changed
+65 -62

No files matched your search

+5 -4
View File
@@ -6,7 +6,8 @@ server {
root /usr/share/nginx/html;
index index.html;
client_max_body_size 100M;
client_max_body_size 500m;
client_body_timeout 3600s;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
@@ -43,9 +44,9 @@ server {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_request_buffering off;
proxy_connect_timeout 30s;
proxy_send_timeout 300s;
proxy_read_timeout 300s;
proxy_connect_timeout 60s;
proxy_send_timeout 3600s;
proxy_read_timeout 3600s;
}
location ^~ /api/ {