feat: add IPv6 support via configurable HOST binding (#1885)
This commit is contained in:
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 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}`);
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -104,7 +104,8 @@ async function bootstrap() {
|
|||
});
|
||||
|
||||
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(
|
||||
`Listening on http://127.0.0.1:${port} / ${process.env.APP_URL}`,
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue