Bind host explicitly (default 0.0.0.0) for Tailscale access
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DgBEW6qAwgn2fcQbA2f4ZQ
This commit is contained in:
parent
c0e46391e5
commit
9fedf8ecd3
@ -22,6 +22,7 @@ const configSchema = z.object({
|
|||||||
onlyInvolved: z.boolean().default(true),
|
onlyInvolved: z.boolean().default(true),
|
||||||
pollIntervalSeconds: z.number().int().min(15).default(60),
|
pollIntervalSeconds: z.number().int().min(15).default(60),
|
||||||
port: z.number().int().default(4000),
|
port: z.number().int().default(4000),
|
||||||
|
host: z.string().default('0.0.0.0'),
|
||||||
repos: z.array(repoSchema).min(1),
|
repos: z.array(repoSchema).min(1),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@ -41,8 +41,8 @@ function scheduleNext(): void {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const app = createApp({ db, triggerSync: poll });
|
const app = createApp({ db, triggerSync: poll });
|
||||||
app.listen(config.port, () => {
|
app.listen(config.port, config.host, () => {
|
||||||
console.log(`pr-monitor listening on http://localhost:${config.port}`);
|
console.log(`pr-monitor listening on http://${config.host}:${config.port}`);
|
||||||
});
|
});
|
||||||
|
|
||||||
await poll();
|
await poll();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user