diff --git a/consul/config/data-service.json b/consul/config/data-service.json index 5647c89..29fd51b 100644 --- a/consul/config/data-service.json +++ b/consul/config/data-service.json @@ -10,7 +10,10 @@ "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-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" ], "name": "data-service", "port": 8000