Listen on all IP addresses

This commit is contained in:
Anthony Wang 2021-05-07 18:09:52 -05:00
parent 3834a5d710
commit 069e1d3a1f
Signed by: a
GPG key ID: BC96B00AEC5F2D76

View file

@ -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), "cert": fs.readFileSync(process.env.SSL_CERT),
"ca": fs.readFileSync(process.env.SSL_CA) "ca": fs.readFileSync(process.env.SSL_CA)
}) : http.createServer(); }) : http.createServer();
base.listen(+process.env.PORT!, () => { base.listen(+process.env.PORT!, '0.0.0.0', () => {
console.log(`Listening on port ${process.env.PORT}`); console.log(`Listening on port ${process.env.PORT}`);
}); });