将Traefik路由规则中的路径语法从反引号(`)改为双引号(")以保持一致性
同时将traefik.yml中的pathPrefix改为pathPrefixes以支持数组格式
21 lines
440 B
JSON
21 lines
440 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"
|
|
}
|
|
]
|
|
}
|
|
}
|