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;
|
||||
app.listen(PORT, () => {
|
||||
console.log(`Express server listening on port ${PORT}`);
|
||||
app.listen(PORT, '0.0.0.0', () => {
|
||||
console.log(`Express server listening on 0.0.0.0:${PORT}`);
|
||||
});
|
||||
|
||||
// Start Application
|
||||
|
|
|
|||
|
|
@ -215,8 +215,8 @@ app.post('/api/groups/create', async (req, res) => {
|
|||
}
|
||||
});
|
||||
|
||||
server.listen(PORT, () => {
|
||||
console.log(`[WhatsApp Gateway] Server running at http://localhost:${PORT}`);
|
||||
server.listen(PORT, '0.0.0.0', () => {
|
||||
console.log(`[WhatsApp Gateway] Server running at http://0.0.0.0:${PORT}`);
|
||||
});
|
||||
|
||||
console.log('[WhatsApp Bot] Initializing client...');
|
||||
|
|
|
|||
Loading…
Reference in New Issue