Skip to content

Commit

Permalink
Merge pull request #1 from korewaChino/main
Browse files Browse the repository at this point in the history
fix: Listen for healthchecks on all interfaces
  • Loading branch information
lleyton authored Jun 28, 2024
2 parents eabfe51 + efd5f79 commit fcf2510
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ if (healthCheckPort) {
res.writeHead(stream.state === "connected" ? 200 : 500);
res.end();
})
.listen(Number.parseInt(healthCheckPort), "127.0.0.1");
.listen(Number.parseInt(healthCheckPort), "0.0.0.0");

console.log(
`Started listening for healthchecks on http://127.0.0.1:${healthCheckPort}`,
`Started listening for healthchecks on http://0.0.0.0:${healthCheckPort}`,
);
}

Expand Down

0 comments on commit fcf2510

Please sign in to comment.