AriStockAI/consul/config/whoami.json
fanfpy da3f845591 refactor(consul): 统一Traefik路由规则格式并简化whoami配置
- 将所有服务的Traefik路由规则从点分隔符改为下划线格式
- 简化whoami服务配置,移除中间件并更新路由规则
- 统一所有服务的配置格式以提高可维护性
2025-07-01 16:38:55 +08:00

21 lines
438 B
JSON

{
"service": {
"name": "whoami",
"tags": [
"traefik.enable=true",
"traefik.http.routers.whoami.entrypoints=web",
"traefik.http.routers.whoami.rule=Path(`/whoami`)",
"traefik.http.services.whoami.loadbalancer.server.port=80"
],
"address": "whoami",
"port": 80,
"checks": [
{
"http": "http://whoami:80/",
"interval": "10s",
"timeout": "2s"
}
]
}
}