fix: écouter sur 0.0.0.0 au lieu de localhost pour accès distant
This commit is contained in:
@@ -95,8 +95,8 @@ app.use((err, req, res, next) => {
|
|||||||
res.status(err.status || 500).json({ error: 'Erreur serveur interne', details: err.message });
|
res.status(err.status || 500).json({ error: 'Erreur serveur interne', details: err.message });
|
||||||
});
|
});
|
||||||
|
|
||||||
app.listen(PORT, () => {
|
app.listen(PORT, '0.0.0.0', () => {
|
||||||
console.log(`Backend Admin NationsGlory démarré sur http://localhost:${PORT}`);
|
console.log(`Backend Admin NationsGlory démarré sur http://0.0.0.0:${PORT}`);
|
||||||
console.log(`Répertoire du serveur: ${SERVER_DIR}`);
|
console.log(`Répertoire du serveur: ${SERVER_DIR}`);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user