Auto-bind to 0.0.0.0 on container platforms for health checks (#291)

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
John Wessel
2026-02-12 21:38:47 -05:00
committed by GitHub
parent 014c2b56aa
commit d0a34d209e

View File

@@ -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,