Fix Node 18 container network bindings by listening explicitly on 0.0.0.0
This commit is contained in:
parent
768217dc85
commit
cafca3a4d1
|
|
@ -258,8 +258,8 @@ app.post('/api/auth/token', (req, res) => {
|
||||||
});
|
});
|
||||||
|
|
||||||
const PORT = process.env.PORT || 5002;
|
const PORT = process.env.PORT || 5002;
|
||||||
app.listen(PORT, () => {
|
app.listen(PORT, '0.0.0.0', () => {
|
||||||
console.log(`Express server listening on port ${PORT}`);
|
console.log(`Express server listening on 0.0.0.0:${PORT}`);
|
||||||
});
|
});
|
||||||
|
|
||||||
// Start Application
|
// Start Application
|
||||||
|
|
|
||||||
|
|
@ -215,8 +215,8 @@ app.post('/api/groups/create', async (req, res) => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
server.listen(PORT, () => {
|
server.listen(PORT, '0.0.0.0', () => {
|
||||||
console.log(`[WhatsApp Gateway] Server running at http://localhost:${PORT}`);
|
console.log(`[WhatsApp Gateway] Server running at http://0.0.0.0:${PORT}`);
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log('[WhatsApp Bot] Initializing client...');
|
console.log('[WhatsApp Bot] Initializing client...');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue