From 461b11b310fe2af7ca1b0a46e4efcc8a11c913e6 Mon Sep 17 00:00:00 2001 From: hailin Date: Sun, 11 Jan 2026 17:44:49 -0800 Subject: [PATCH] =?UTF-8?q?fix(kong):=20=E4=BF=AE=E5=A4=8Dcontribution-ser?= =?UTF-8?q?vice=E8=B7=AF=E7=94=B1=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将service URL从 /api/v2/contributions 改为根路径 - 设置 strip_path: false 直接透传请求路径 - 前端和后端现在都使用 /api/v2/contribution(单数) 前端请求: /api/v2/contribution/accounts/{id} Kong转发: http://contribution-service:3020/api/v2/contribution/accounts/{id} Co-Authored-By: Claude Opus 4.5 --- backend/api-gateway/kong.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/backend/api-gateway/kong.yml b/backend/api-gateway/kong.yml index f72a41f0..c6e09cca 100644 --- a/backend/api-gateway/kong.yml +++ b/backend/api-gateway/kong.yml @@ -277,18 +277,20 @@ services: # --------------------------------------------------------------------------- # Contribution Service 2.0 - 算力服务 + # 前端路径: /api/v2/contribution/... + # 后端路径: /api/v2/contribution/... (strip_path: false, 直接透传) # --------------------------------------------------------------------------- - name: contribution-service-v2 - url: http://192.168.1.111:3020/api/v2/contributions + url: http://192.168.1.111:3020 routes: - name: contribution-v2-api paths: - /api/v2/contribution - strip_path: true + strip_path: false - name: contribution-v2-health paths: - /api/v2/contribution/health - strip_path: true + strip_path: false # --------------------------------------------------------------------------- # Mining Service 2.0 - 挖矿服务