diff --git a/consul/config/data-service.json b/consul/config/data-service.json index 5647c89..16bfa16 100644 --- a/consul/config/data-service.json +++ b/consul/config/data-service.json @@ -10,7 +10,9 @@ "tags": [ "traefik.enable=true", "traefik.http.routers.data-service.rule=PathPrefix(\"/api/data\")", - "traefik.http.routers.data-service.entrypoints=web" + "traefik.http.routers.data-service.entrypoints=web", + "traefik.http.middlewares.data-service-strip.stripprefix.prefixes=/api/data", + "traefik.http.routers.data-service.middlewares=data-service-strip" ], "name": "data-service", "port": 8000