From 0db7a4bcb6a5cc7af817c16a6d9e54da6795e671 Mon Sep 17 00:00:00 2001 From: zxstty Date: Sat, 25 Oct 2025 21:06:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4doc=E5=92=8Ckb=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E7=9A=84=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/nginx.conf.tmpl | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/deploy/nginx.conf.tmpl b/deploy/nginx.conf.tmpl index 378937e..aa5ba09 100644 --- a/deploy/nginx.conf.tmpl +++ b/deploy/nginx.conf.tmpl @@ -97,29 +97,6 @@ http { return 404; } - # 文件上传接口 - 智能超时设置 - location ~ ^/witchaind/api/(kb/import|doc)$ { - proxy_set_header X-Real-IP $remote_addr; - add_header X-Frame-Options DENY; - add_header Cache-Control "no-cache,no-store,must-revalidate"; - proxy_buffering off; - error_page 404 = @not_found; - - # 智能上传超时设置 - # 基于文件大小和网络条件的动态超时 - proxy_connect_timeout 60s; # 连接超时保持较短 - proxy_send_timeout 1800s; # 发送超时 - 匹配客户端 - proxy_read_timeout 1800s; # 读取超时 - 匹配客户端 - - # 增加缓冲区大小以处理大文件 - client_body_buffer_size 128k; - proxy_buffer_size 64k; - proxy_buffers 32 64k; - proxy_busy_buffers_size 128k; - - proxy_pass ${DATA_CHAIN_BACEND_URL}; - } - location /witchaind/api/ { proxy_set_header X-Real-IP $remote_addr; add_header X-Frame-Options DENY; -- Gitee