From bb23242cff82f962bbdf91e6c5be5cdb8e6f9755 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E5=8B=A4=E6=B0=91?= Date: Fri, 22 May 2026 16:49:42 +0800 Subject: [PATCH] =?UTF-8?q?feat(nginx):=20=E6=9B=B4=E6=96=B0=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E6=8E=A5=E5=8F=A3=E9=85=8D=E7=BD=AE=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E4=B8=80=E9=94=AE=E6=9B=B4=E6=96=B0=E5=92=8C=E9=87=8D=E7=BD=AE?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改location规则从精确匹配改为正则匹配以支持update和reset两个接口 - 扩展注释说明同时覆盖一键更新和重置操作的超时需求 - 保持原有的长超时设置以确保docker操作能够顺利完成 --- config/nginx/conf.d/xuqm.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/nginx/conf.d/xuqm.conf b/config/nginx/conf.d/xuqm.conf index 0d9661c..65cf4cf 100644 --- a/config/nginx/conf.d/xuqm.conf +++ b/config/nginx/conf.d/xuqm.conf @@ -79,8 +79,8 @@ server { proxy_send_timeout 300s; } - # 一键更新:docker pull 可能耗时数分钟,需要更长超时(精确匹配,优先于 /api/ 前缀) - location = /api/system/update { + # 一键更新/重置:操作耗时较长,需要更长超时(精确匹配,优先于 /api/ 前缀) + location ~ ^/api/system/(update|reset)$ { set $svc tenant-service; proxy_pass http://$svc:9001; proxy_set_header Host $host;