Skip to content

Commit

Permalink
Update listening port in healthcheck service
Browse files Browse the repository at this point in the history
  • Loading branch information
serguun42 committed Nov 30, 2023
1 parent 31ceaaa commit eb08947
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion healthcheck/healthcheck-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const CONFIG = IS_DEV ? require("../../DEV_CONFIGS/healthcheck.config.json") : r

const CHECKING_ORIGIN = process.env.CHECKING_ORIGIN || CONFIG.CHECKING_ORIGIN;
const API_VERSION = process.env.API_VERSION || CONFIG.API_VERSION;
const LISTENING_PORT = parseInt(process.env.PORT) || 80;

const PONG_API_METHOD = new URL(`/api/v${API_VERSION}/stats`, CHECKING_ORIGIN);
const STATS_API_METHOD = new URL(`/api/v${API_VERSION}/stats`, CHECKING_ORIGIN);
Expand Down Expand Up @@ -76,4 +77,4 @@ http
);
});
})
.listen(80);
.listen(LISTENING_PORT);

0 comments on commit eb08947

Please sign in to comment.