Skip to content

Commit 69523c7

Browse files
committed
fix: 修正 health check 路径为 /api/v1/actuator/health
1 parent 89ba971 commit 69523c7

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Caddyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
{$CADDY_SITE_ADDRESS::80} {
44
# 将所有请求转发至后端 Spring Boot 服务
55
reverse_proxy {$CADDY_UPSTREAM:backend:8080} {
6-
health_uri /actuator/health
6+
health_uri /api/v1/actuator/health
77
}
88
}

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ services:
2828
expose:
2929
- "${SERVER_PORT:-8080}"
3030
healthcheck:
31-
test: ["CMD-SHELL", "curl -fsS \"http://127.0.0.1:${SERVER_PORT:-8080}/actuator/health\" | grep '\"status\":\"UP\"' >/dev/null || exit 1"]
31+
test: ["CMD-SHELL", "curl -fsS \"http://127.0.0.1:${SERVER_PORT:-8080}/api/v1/actuator/health\" | grep '\"status\":\"UP\"' >/dev/null || exit 1"]
3232
interval: 30s
3333
timeout: 5s
3434
retries: 3

0 commit comments

Comments
 (0)