fix: écouter sur 0.0.0.0 au lieu de localhost pour accès distant

This commit is contained in:
2026-02-05 01:26:28 +01:00
parent ec50d8e306
commit 1228a02221

View File

@@ -95,8 +95,8 @@ app.use((err, req, res, next) => {
res.status(err.status || 500).json({ error: 'Erreur serveur interne', details: err.message });
});
app.listen(PORT, () => {
console.log(`Backend Admin NationsGlory démarré sur http://localhost:${PORT}`);
app.listen(PORT, '0.0.0.0', () => {
console.log(`Backend Admin NationsGlory démarré sur http://0.0.0.0:${PORT}`);
console.log(`Répertoire du serveur: ${SERVER_DIR}`);
});