chore: bind servers to 0.0.0.0 to allow external network access
This commit is contained in:
@@ -38,7 +38,7 @@ app.use('/', authRoutes);
|
|||||||
// Startup
|
// Startup
|
||||||
async function start() {
|
async function start() {
|
||||||
await database.initDb();
|
await database.initDb();
|
||||||
app.listen(PORT, () => {
|
app.listen(PORT, '0.0.0.0', () => {
|
||||||
console.log(`[AUTH] Started on port ${PORT}`);
|
console.log(`[AUTH] Started on port ${PORT}`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -87,6 +87,6 @@ app.get('/live', renderPage('live', {
|
|||||||
realtimeWsUrl: process.env.REALTIME_WS_URL || 'ws://localhost:3002'
|
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}`);
|
console.log(`Started on port ${PORT}`);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ app.get('/sessions/:sensorId/csv', async (req, res) => {
|
|||||||
|
|
||||||
// --- HTTP server + WebSocket per watchers live ---
|
// --- 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}`);
|
console.log(`Realtime on port ${process.env.PORT}`);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user