From 069e1d3a1fc80ae2d202b9e8ae4d2c9ee4102a81 Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Fri, 7 May 2021 18:09:52 -0500 Subject: Listen on all IP addresses --- back/src/server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}`); }); -- cgit v1.2.3-70-g09d2