AriStockAI/consul/config/dev/whoami.json
fanfpy 611a26a59a refactor(config): 重构配置文件结构为环境分离模式
将consul和traefik的配置文件按dev和prod环境分离
删除旧的单一配置文件,新增环境特定配置
更新docker-compose.yml以支持环境配置切换
2025-07-06 16:19:32 +08:00

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"
}
]
}
}