From 9fedf8ecd3b2300498e79e6aa2eddcd4e03cfcea Mon Sep 17 00:00:00 2001 From: Joshua Coles Date: Tue, 28 Jul 2026 14:41:26 +0000 Subject: [PATCH] Bind host explicitly (default 0.0.0.0) for Tailscale access Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01DgBEW6qAwgn2fcQbA2f4ZQ --- server/config.ts | 1 + server/index.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/server/config.ts b/server/config.ts index 82f97ae..b2f1971 100644 --- a/server/config.ts +++ b/server/config.ts @@ -22,6 +22,7 @@ const configSchema = z.object({ onlyInvolved: z.boolean().default(true), pollIntervalSeconds: z.number().int().min(15).default(60), port: z.number().int().default(4000), + host: z.string().default('0.0.0.0'), repos: z.array(repoSchema).min(1), }); diff --git a/server/index.ts b/server/index.ts index e36321d..331d47a 100644 --- a/server/index.ts +++ b/server/index.ts @@ -41,8 +41,8 @@ function scheduleNext(): void { } const app = createApp({ db, triggerSync: poll }); -app.listen(config.port, () => { - console.log(`pr-monitor listening on http://localhost:${config.port}`); +app.listen(config.port, config.host, () => { + console.log(`pr-monitor listening on http://${config.host}:${config.port}`); }); await poll();