From f16335c190cb984d42be4361f42e7c8f70559614 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E5=8B=A4=E6=B0=91?= Date: Thu, 21 May 2026 17:19:46 +0800 Subject: [PATCH] =?UTF-8?q?fix(nginx):=20=E4=B8=BA=E4=B8=80=E9=94=AE?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=8E=A5=E5=8F=A3=E8=AE=BE=E7=BD=AE=20600s?= =?UTF-8?q?=20=E8=B6=85=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit docker pull 期间可能长时间无输出,60s proxy_read_timeout 导致 ERR_INCOMPLETE_CHUNKED_ENCODING。添加精确匹配 location 解决。 Co-Authored-By: Claude Sonnet 4.6 --- config/nginx/conf.d/xuqm.conf | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/config/nginx/conf.d/xuqm.conf b/config/nginx/conf.d/xuqm.conf index ec1b14e..0d9661c 100644 --- a/config/nginx/conf.d/xuqm.conf +++ b/config/nginx/conf.d/xuqm.conf @@ -79,6 +79,17 @@ server { proxy_send_timeout 300s; } + # 一键更新:docker pull 可能耗时数分钟,需要更长超时(精确匹配,优先于 /api/ 前缀) + location = /api/system/update { + set $svc tenant-service; + proxy_pass http://$svc:9001; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_read_timeout 600s; + proxy_send_timeout 600s; + } + # 核心 API(兜底,在所有具体 /api/xxx/ 之后) location /api/ { set $svc tenant-service;