fix(health): 添加 /api/v1/health 端点并修正 mci-server 健康检查
- HealthController: 提供无鉴权健康检查接口,返回 {status: ok}
- AuthInterceptor/WebConfig: 放行 /api/v1/health
- docker-compose.yml: mci-server 健康检查地址改为 /msg-platform/api/v1/health
注意:mci-server Docker 镜像当前因 Maven Central 无法解析 spring-boot-maven-plugin:4.1.0 而无法重新构建,健康检查修复已入库,待网络恢复后重新构建即可生效。
This commit is contained in:
@@ -93,7 +93,7 @@ services:
|
||||
rabbitmq:
|
||||
condition: service_healthy
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-fsS", "http://localhost:8080/msg-platform/actuator/health"]
|
||||
test: ["CMD", "curl", "-fsS", "http://localhost:8080/msg-platform/api/v1/health"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 15
|
||||
|
||||
Reference in New Issue
Block a user