From 37bcb77be0db1309f91c337cb9352bebd477c413 Mon Sep 17 00:00:00 2001 From: whyour Date: Sun, 24 Dec 2023 15:48:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=81=A5=E5=BA=B7=E6=A3=80?= =?UTF-8?q?=E6=9F=A5=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/schedule/health.ts | 2 +- docker/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/back/schedule/health.ts b/back/schedule/health.ts index 9946034c..9dcad88f 100644 --- a/back/schedule/health.ts +++ b/back/schedule/health.ts @@ -10,7 +10,7 @@ const check = async ( switch (call.request.service) { case 'cron': const res = await promiseExec( - `curl -s http://0.0.0.0:${config.port}/api/system`, + `curl -s --noproxy '*' http://0.0.0.0:${config.port}/api/system`, ); if (res.includes('200')) { diff --git a/docker/Dockerfile b/docker/Dockerfile index e80eaaf5..0231c523 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -70,6 +70,6 @@ COPY --from=builder /tmp/build/node_modules/. /ql/node_modules/ WORKDIR ${QL_DIR} HEALTHCHECK --interval=5s --timeout=2s --retries=20 \ - CMD curl -sf http://127.0.0.1:5400/api/health || exit 1 + CMD curl -sf --noproxy '*' http://127.0.0.1:5400/api/health || exit 1 ENTRYPOINT ["./docker/docker-entrypoint.sh"]