AriStockAI/consul/config/dev/frontend.json
fanfpy edeb71d74c fix(consul): 为前端和数据服务添加Traefik路由优先级
添加traefik.http.routers.frontend.priority=10和traefik.http.routers.data-service.priority=100配置,确保API请求优先于前端路由处理
2025-07-16 13:41:12 +08:00

19 lines
497 B
JSON

{
"service": {
"address": "frontend",
"check": {
"http": "http://frontend:80/",
"interval": "10s",
"timeout": "5s"
},
"id": "frontend-1",
"tags": [
"traefik.enable=true",
"traefik.http.routers.frontend.rule=PathPrefix(`/`) || PathPrefix(`/index.html`) || PathPrefix(`/static`)",
"traefik.http.routers.frontend.priority=10",
"traefik.http.routers.frontend.entrypoints=web"
],
"name": "frontend",
"port": 80
}
}