feat: add IPv6 support via configurable HOST binding (#1885)

This commit is contained in:
Philip Okugbe
2026-01-30 00:33:10 +00:00
committed by GitHub
parent 60501de992
commit 96ed98619f
2 changed files with 4 additions and 2 deletions
@@ -37,7 +37,8 @@ async function bootstrap() {
const logger = new Logger('CollabServer'); const logger = new Logger('CollabServer');
const port = process.env.COLLAB_PORT || 3001; const port = process.env.COLLAB_PORT || 3001;
await app.listen(port, '0.0.0.0', () => { const host = process.env.HOST || '0.0.0.0';
await app.listen(port, host, () => {
logger.log(`Listening on http://127.0.0.1:${port}`); logger.log(`Listening on http://127.0.0.1:${port}`);
}); });
} }
+2 -1
View File
@@ -104,7 +104,8 @@ async function bootstrap() {
}); });
const port = process.env.PORT || 3000; const port = process.env.PORT || 3000;
await app.listen(port, '0.0.0.0', () => { const host = process.env.HOST || '0.0.0.0';
await app.listen(port, host, () => {
logger.log( logger.log(
`Listening on http://127.0.0.1:${port} / ${process.env.APP_URL}`, `Listening on http://127.0.0.1:${port} / ${process.env.APP_URL}`,
); );