From 2839821ab1563094262004ccd2ea454edc90fac2 Mon Sep 17 00:00:00 2001 From: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Date: Mon, 13 Nov 2023 19:12:38 +0200 Subject: [PATCH] Fix healthcheck.js without ssl --- services/healthcheck.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/healthcheck.js b/services/healthcheck.js index d0b4dd82..d0ba2421 100644 --- a/services/healthcheck.js +++ b/services/healthcheck.js @@ -10,7 +10,7 @@ const http = require(isSsl ? 'https' : 'http'); /* Location of the server to test */ const isDocker = !!process.env.IS_DOCKER; -const port = isSsl ? (process.env.SSL_PORT || (isDocker ? 443 : 4001)) : (process.env.PORT || isDocker ? 80 : 4000); +const port = isSsl ? (process.env.SSL_PORT || (isDocker ? 443 : 4001)) : (process.env.PORT || (isDocker ? 80 : 4000)); const host = process.env.HOST || '0.0.0.0'; const timeout = 2000;