From a45bce50271f1c45e13ea08fc57f69003841c0e7 Mon Sep 17 00:00:00 2001 From: HuangHuiKang Date: Tue, 26 May 2026 10:44:45 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9nginx=E8=B6=85=E6=97=B6?= =?UTF-8?q?=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx.conf | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/nginx.conf b/nginx.conf index b8caf71f..5729e577 100644 --- a/nginx.conf +++ b/nginx.conf @@ -5,6 +5,18 @@ server { # 关键:允许上传最大100MB client_max_body_size 100m; + # 超时时间 + proxy_connect_timeout 300s; + proxy_send_timeout 300s; + proxy_read_timeout 300s; + client_body_timeout 300s; + send_timeout 300s; + + # 防止大文件上传被缓冲卡死 + proxy_request_buffering off; + proxy_buffering off; + + location /admin-api/ { proxy_pass http://besure_server:48081; proxy_set_header Host $host;