aboutsummaryrefslogtreecommitdiff
path: root/back
diff options
context:
space:
mode:
authorAnthony Wang2021-05-07 18:09:52 -0500
committerAnthony Wang2021-05-07 18:09:52 -0500
commit069e1d3a1fc80ae2d202b9e8ae4d2c9ee4102a81 (patch)
tree3e22826884f530bfcae1d4cc1b253f34158543b7 /back
parent3834a5d710cccfe9880213ed01263ecb9775e5d9 (diff)
Listen on all IP addresses
Diffstat (limited to 'back')
-rw-r--r--back/src/server.ts2
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}`);
});