chore: bind servers to 0.0.0.0 to allow external network access

This commit is contained in:
Giuseppe Raffa
2026-03-31 20:07:54 +02:00
parent 7f24ca4079
commit ba6941fd2a
3 changed files with 3 additions and 3 deletions

View File

@@ -38,7 +38,7 @@ app.use('/', authRoutes);
// Startup
async function start() {
await database.initDb();
app.listen(PORT, () => {
app.listen(PORT, '0.0.0.0', () => {
console.log(`[AUTH] Started on port ${PORT}`);
});
}

View File

@@ -87,6 +87,6 @@ app.get('/live', renderPage('live', {
realtimeWsUrl: process.env.REALTIME_WS_URL || 'ws://localhost:3002'
}));
app.listen(PORT, () => {
app.listen(PORT, '0.0.0.0', () => {
console.log(`Started on port ${PORT}`);
});

View File

@@ -71,7 +71,7 @@ app.get('/sessions/:sensorId/csv', async (req, res) => {
// --- HTTP server + WebSocket per watchers live ---
const server = app.listen(process.env.PORT, () => {
const server = app.listen(process.env.PORT, '0.0.0.0', () => {
console.log(`Realtime on port ${process.env.PORT}`);
});