From 0496682ad5dedda3cb82ebe98dec7f55b298deb9 Mon Sep 17 00:00:00 2001 From: Zaki-1052 Date: Fri, 9 Feb 2024 12:25:03 -0800 Subject: [PATCH] fixed host --- server.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server.js b/server.js index 7d994c8..6342bd7 100644 --- a/server.js +++ b/server.js @@ -879,8 +879,8 @@ app.get('/portal', (req, res) => { // Expose a configuration endpoint app.get('/config', (req, res) => { res.json({ - host: process.env.HOST, - port: process.env.PORT + host: HOST, + port: PORT }); }); @@ -891,7 +891,7 @@ app.get('/portal', (req, res) => { app.set('trust proxy', true); const PORT = process.env.PORT || 3000; -const HOST = process.env.HOST || '0.0.0.0'; +const HOST = process.env.HOST || 'localhost'; const server = app.listen(PORT, HOST, () => { console.log(`Server running at http://${HOST}:${PORT}`);