From 60923e61c9490ed50ce8785674cba5fbe4a09ac0 Mon Sep 17 00:00:00 2001 From: Doubleyin <953994191@qq.com> Date: Mon, 29 Sep 2025 00:54:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E7=89=88=E5=AE=B9=E5=99=A8=E5=91=BD?= =?UTF-8?q?=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/deploy.yml | 5 +++-- deploy.yml | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) 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