AriStockAI/consul/config/dev/user-service.json

20 lines
659 B
JSON

{
"service": {
"address": "user-service",
"check": {
"http": "http://10.195.102.127:18004/health",
"interval": "10s",
"timeout": "5s"
},
"id": "user-service",
"tags": [
"traefik.enable=true",
"traefik.http.routers.user-service.rule=PathPrefix(`/api/user`) || PathPrefix(`/api/auth`)",
"traefik.http.routers.user-service.entrypoints=web",
"traefik.http.middlewares.user-service-stripprefix.stripprefix.prefixes=/api/user,/api/auth",
"traefik.http.routers.user-service.middlewares=user-service-stripprefix@consulcatalog"
],
"name": "user-service",
"port": 18004
}
}