From 3206cd8638525e98ac57a2b9ef5e14c9dadf19eb Mon Sep 17 00:00:00 2001 From: Ethan-Zhang Date: Fri, 24 Oct 2025 12:37:35 +0800 Subject: [PATCH] =?UTF-8?q?Fix:=20nginx=E9=85=8D=E7=BD=AE=E6=A8=A1?= =?UTF-8?q?=E6=9D=BFdebug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/nginx.conf.tmpl | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/deploy/nginx.conf.tmpl b/deploy/nginx.conf.tmpl index 9e09ca5..729ffc9 100644 --- a/deploy/nginx.conf.tmpl +++ b/deploy/nginx.conf.tmpl @@ -28,8 +28,8 @@ http { client_body_buffer_size 5120M; client_max_body_size 5120M; - client_header_timeout 15s; - client_body_timeout 15s; + client_header_timeout 60s; # 请求头超时 - 适当增加以支持文件上传 + client_body_timeout 1800s; # 30分钟 - 适应大文件上传 client_body_in_file_only off; keepalive_timeout 500s; @@ -107,8 +107,6 @@ http { # 智能上传超时设置 # 基于文件大小和网络条件的动态超时 - client_body_timeout 1800s; # 30分钟 - 适应大文件慢网络 - client_header_timeout 60s; # 请求头超时保持较短 proxy_connect_timeout 60s; # 连接超时保持较短 proxy_send_timeout 1800s; # 发送超时 - 匹配客户端 proxy_read_timeout 1800s; # 读取超时 - 匹配客户端 -- Gitee