diff --git a/consul/config/data-service.json b/consul/config/data-service.json index 3abf2e8..3eafe98 100644 --- a/consul/config/data-service.json +++ b/consul/config/data-service.json @@ -9,7 +9,7 @@ "id": "data-service-1", "tags": [ "traefik.enable=true", - "traefik.http.routers.data-service.rule=PathPrefix(`/api/data`)", + "traefik.http.routers.data-service.rule=PathPrefix(`/api-data`)", "traefik.http.routers.data-service.entrypoints=web" ], "name": "data-service", diff --git a/consul/config/emotion-service.json b/consul/config/emotion-service.json index ed41d81..cf69960 100644 --- a/consul/config/emotion-service.json +++ b/consul/config/emotion-service.json @@ -9,7 +9,7 @@ "id": "emotion-service-1", "tags": [ "traefik.enable=true", - "traefik.http.routers.emotion-service.rule=PathPrefix(`/api/emotion`)", + "traefik.http.routers.emotion-service.rule=PathPrefix(`/api-emotion`)", "traefik.http.routers.emotion-service.entrypoints=web" ], "name": "emotion-service", diff --git a/consul/config/recommend-service.json b/consul/config/recommend-service.json index 098c2cb..6bfbf3a 100644 --- a/consul/config/recommend-service.json +++ b/consul/config/recommend-service.json @@ -9,7 +9,7 @@ "id": "recommend-service-1", "tags": [ "traefik.enable=true", - "traefik.http.routers.recommend-service.rule=PathPrefix(`/api/recommend`)", + "traefik.http.routers.recommend-service.rule=PathPrefix(`/api-recommend`)", "traefik.http.routers.recommend-service.entrypoints=web" ], "name": "recommend-service", diff --git a/consul/config/user-service.json b/consul/config/user-service.json index fbbcf9c..c293f9d 100644 --- a/consul/config/user-service.json +++ b/consul/config/user-service.json @@ -9,7 +9,7 @@ "id": "user-service-1", "tags": [ "traefik.enable=true", - "traefik.http.routers.user-service.rule=PathPrefix(`/api/user`)", + "traefik.http.routers.user-service.rule=PathPrefix(`/api-user`)", "traefik.http.routers.user-service.entrypoints=web" ], "name": "user-service", diff --git a/traefik/traefik.yml b/traefik/traefik.yml index c6dbeb6..84f204b 100644 --- a/traefik/traefik.yml +++ b/traefik/traefik.yml @@ -11,5 +11,4 @@ providers: api: dashboard: true - insecure: true - prefix: "/traefik-api" # 自定义 API 路径前缀 \ No newline at end of file + insecure: true \ No newline at end of file