From de5d14befb83db39e1f35caec772bbd304117717 Mon Sep 17 00:00:00 2001 From: fanfpy Date: Sun, 6 Jul 2025 12:19:20 +0800 Subject: [PATCH] =?UTF-8?q?refactor(consul):=20=E7=A7=BB=E9=99=A4data-serv?= =?UTF-8?q?ice=E4=B8=AD=E5=86=97=E4=BD=99=E7=9A=84traefik=E9=87=8D?= =?UTF-8?q?=E5=86=99=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除不再需要的路径重写中间件配置,简化服务路由设置 --- consul/config/data-service.json | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/consul/config/data-service.json b/consul/config/data-service.json index 29fd51b..5647c89 100644 --- a/consul/config/data-service.json +++ b/consul/config/data-service.json @@ -10,10 +10,7 @@ "tags": [ "traefik.enable=true", "traefik.http.routers.data-service.rule=PathPrefix(\"/api/data\")", - "traefik.http.routers.data-service.entrypoints=web", - "traefik.http.middlewares.data-service-rewrite.replacepathregex.regex=^/api/data/(.*)", - "traefik.http.middlewares.data-service-rewrite.replacepathregex.replacement=/api/public/$1", - "traefik.http.routers.data-service.middlewares=data-service-rewrite" + "traefik.http.routers.data-service.entrypoints=web" ], "name": "data-service", "port": 8000