From d0a34d209eeeab6c0cefd5f5af1b82b6f951785b Mon Sep 17 00:00:00 2001 From: John Wessel Date: Thu, 12 Feb 2026 21:38:47 -0500 Subject: [PATCH] Auto-bind to 0.0.0.0 on container platforms for health checks (#291) Co-authored-by: Claude Opus 4.6 --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index df6dfb6..fc8555e 100644 --- a/src/main.ts +++ b/src/main.ts @@ -666,7 +666,7 @@ async function main() { // Start API server - uses gateway for delivery const apiPort = parseInt(process.env.PORT || '8080', 10); - const apiHost = process.env.API_HOST; // undefined = 127.0.0.1 (secure default) + const apiHost = process.env.API_HOST || (isContainerDeploy ? '0.0.0.0' : undefined); // Container platforms need 0.0.0.0 for health checks const apiCorsOrigin = process.env.API_CORS_ORIGIN; // undefined = same-origin only const apiServer = createApiServer(gateway, { port: apiPort,