将Traefik路由规则中的路径语法从反引号(`)改为双引号(")以保持一致性
同时将traefik.yml中的pathPrefix改为pathPrefixes以支持数组格式
18 lines
455 B
JSON
18 lines
455 B
JSON
{
|
|
"service": {
|
|
"address": "emotion-service",
|
|
"check": {
|
|
"http": "http://emotion-service:8002/health",
|
|
"interval": "10s",
|
|
"timeout": "5s"
|
|
},
|
|
"id": "emotion-service-1",
|
|
"tags": [
|
|
"traefik.enable=true",
|
|
"traefik.http.routers.emotion-service.rule=PathPrefix(\"/api/emotion\")",
|
|
"traefik.http.routers.emotion-service.entrypoints=web"
|
|
],
|
|
"name": "emotion-service",
|
|
"port": 8002
|
|
}
|
|
} |