diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 41d822f..a7ce267 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -99,11 +99,12 @@ jobs: RETRY_COUNT=0 while [ $RETRY_COUNT -lt $MAX_RETRIES ]; do - if curl -f -s http://localhost:8080/actuator/health > /dev/null 2>&1; then + # 使用正确的端口 (8443) 和协议 (HTTPS),不跳过SSL验证 + if curl -f -s https://localhost:8443/actuator/health > /dev/null 2>&1; then echo "✅ 应用健康检查通过" # 获取详细的健康信息 - HEALTH_INFO=$(curl -s http://localhost:8080/actuator/health) + HEALTH_INFO=$(curl -s https://localhost:8443/actuator/health) echo "健康状态: $HEALTH_INFO" break fi diff --git a/deploy.yml b/deploy.yml index 1b5f206..a1f90d7 100644 --- a/deploy.yml +++ b/deploy.yml @@ -23,7 +23,7 @@ services: networks: - light-network healthcheck: - test: ["CMD", "curl", "-f", "http://localhost:8080/actuator/health"] + test: ["CMD", "curl", "-f", "https://localhost:8443/actuator/health", "--insecure"] interval: 30s timeout: 10s retries: 3