fix(kong): 修复mining-admin-service路由映射

使用strip_path:true并将url设为/api/v1,
使Kong路由 /api/v2/mining-admin/* -> 服务 /api/v1/*

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-01-11 00:50:29 -08:00
parent 341e319fd3
commit fe7dda396f
1 changed files with 3 additions and 3 deletions

View File

@ -324,16 +324,16 @@ services:
# Mining Admin Service 2.0 - 挖矿管理后台服务 # Mining Admin Service 2.0 - 挖矿管理后台服务
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
- name: mining-admin-service - name: mining-admin-service
url: http://192.168.1.111:3023 url: http://192.168.1.111:3023/api/v1
routes: routes:
- name: mining-admin-api - name: mining-admin-api
paths: paths:
- /api/v2/mining-admin - /api/v2/mining-admin
strip_path: false strip_path: true
- name: mining-admin-health - name: mining-admin-health
paths: paths:
- /api/v2/mining-admin/health - /api/v2/mining-admin/health
strip_path: false strip_path: true
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
# Auth Service 2.0 - 用户认证服务 # Auth Service 2.0 - 用户认证服务