AriStockAI/consul/config/whoami.json
fanfpy f7cdfcbd1d refactor(consul): 统一Traefik路由配置格式并更新whoami服务配置
- 将Traefik路由规则从下划线格式改为点分隔格式
- 更新whoami服务配置,使用tags替代meta并添加中间件配置
- 修复user-service和recommend-service中的拼写错误
2025-07-01 15:43:01 +08:00

24 lines
511 B
JSON

{
"service": {
"name": "whoami",
"address": "whoami",
"port": 80,
"tags": [
"traefik.enable=true",
"traefik.http.routers.whoami.rule=Host(`whoami.localhost`)",
"traefik.http.routers.whoami.entrypoints=web",
"traefik.http.routers.whoami.middlewares=whoami-prefix"
],
"check": {
"http": "http://whoami:80/",
"interval": "10s"
}
},
"middleware": {
"name": "whoami-prefix",
"pathPrefixStrip": {
"prefixes": ["/whoami"]
}
}
}