From 6a6feade0ca2bbc32414b8690f1c0b9b913fe881 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Mon, 27 Jul 2020 18:58:53 +0200 Subject: [PATCH] fix healthcheck --- docker-compose.yml | 1 - health-check/checks.js | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 5a4a579a..1ce9002a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -111,7 +111,6 @@ services: environment: - PORTAL_URL=nginx - HOSTNAME=health-check - - NODE_TLS_REJECT_UNAUTHORIZED=0 expose: - 3100 depends_on: diff --git a/health-check/checks.js b/health-check/checks.js index 51d78506..0ab96f81 100644 --- a/health-check/checks.js +++ b/health-check/checks.js @@ -5,7 +5,7 @@ async function uploadCheck(done) { const time = process.hrtime(); superagent - .post(`https://${process.env.PORTAL_URL}/skynet/skyfile`) + .post(`${process.env.PORTAL_URL}/skynet/skyfile`) .attach("file", "package.json", "package.json") .end((err, res) => { const statusCode = (res && res.statusCode) || (err && err.statusCode) || null; @@ -22,7 +22,7 @@ async function uploadCheck(done) { function downloadCheck(done) { const time = process.hrtime(); - superagent.get(`https://${process.env.PORTAL_URL}`).end((err, res) => { + superagent.get(`${process.env.PORTAL_URL}`).end((err, res) => { const statusCode = (res && res.statusCode) || (err && err.statusCode) || null; done({