- 将Traefik路由规则从下划线格式改为点分隔格式 - 更新whoami服务配置,使用tags替代meta并添加中间件配置 - 修复user-service和recommend-service中的拼写错误
24 lines
511 B
JSON
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"]
|
|
}
|
|
}
|
|
}
|