diff options
author | Anthony Wang | 2021-05-07 18:09:52 -0500 |
---|---|---|
committer | Anthony Wang | 2021-05-07 18:09:52 -0500 |
commit | 069e1d3a1fc80ae2d202b9e8ae4d2c9ee4102a81 (patch) | |
tree | 3e22826884f530bfcae1d4cc1b253f34158543b7 /back | |
parent | 3834a5d710cccfe9880213ed01263ecb9775e5d9 (diff) |
Listen on all IP addresses
Diffstat (limited to 'back')
-rw-r--r-- | back/src/server.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/back/src/server.ts b/back/src/server.ts index 3fe879f..ac3ed70 100644 --- a/back/src/server.ts +++ b/back/src/server.ts @@ -10,7 +10,7 @@ const base = process.env.SSL_KEY && process.env.SSL_CERT && process.env.SSL_CA ? "cert": fs.readFileSync(process.env.SSL_CERT), "ca": fs.readFileSync(process.env.SSL_CA) }) : http.createServer(); -base.listen(+process.env.PORT!, () => { +base.listen(+process.env.PORT!, '0.0.0.0', () => { console.log(`Listening on port ${process.env.PORT}`); }); |