Skip to content

Commit

Permalink
fixed host
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaki-1052 committed Feb 9, 2024
1 parent 41ce9ce commit 0496682
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
});
});

Expand All @@ -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}`);
Expand Down

0 comments on commit 0496682

Please sign in to comment.