From fe7dda396f8000c8fb582daf46ca2bf1c6772f4e Mon Sep 17 00:00:00 2001 From: hailin Date: Sun, 11 Jan 2026 00:50:29 -0800 Subject: [PATCH] =?UTF-8?q?fix(kong):=20=E4=BF=AE=E5=A4=8Dmining-admin-ser?= =?UTF-8?q?vice=E8=B7=AF=E7=94=B1=E6=98=A0=E5=B0=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 使用strip_path:true并将url设为/api/v1, 使Kong路由 /api/v2/mining-admin/* -> 服务 /api/v1/* Co-Authored-By: Claude Opus 4.5 --- backend/api-gateway/kong.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/api-gateway/kong.yml b/backend/api-gateway/kong.yml index 06560f44..c1e18365 100644 --- a/backend/api-gateway/kong.yml +++ b/backend/api-gateway/kong.yml @@ -324,16 +324,16 @@ services: # Mining Admin Service 2.0 - 挖矿管理后台服务 # --------------------------------------------------------------------------- - name: mining-admin-service - url: http://192.168.1.111:3023 + url: http://192.168.1.111:3023/api/v1 routes: - name: mining-admin-api paths: - /api/v2/mining-admin - strip_path: false + strip_path: true - name: mining-admin-health paths: - /api/v2/mining-admin/health - strip_path: false + strip_path: true # --------------------------------------------------------------------------- # Auth Service 2.0 - 用户认证服务