feat: configure realtime services and update environment variables

This commit is contained in:
Giuseppe Raffa
2026-04-14 13:23:26 +02:00
parent 0ae64d0c5b
commit 1044837080
4 changed files with 98 additions and 86 deletions

View File

@@ -36,7 +36,6 @@ app.get('/health', async (req, res) => {
version: process.env.VERSION,
build: process.env.VERSION_BUILD,
state: process.env.VERSION_STATE,
port: process.env.PORT
});
});
@@ -77,9 +76,8 @@ app.get('/sessions/:sensorId/csv', async (req, res) => {
});
const PORT = process.env.PORT || 3000;
const server = app.listen(PORT, '0.0.0.0', async () => {
console.log(`Realtime on port ${PORT}`);
const server = app.listen(3000, '0.0.0.0', async () => {
console.log(`Realtime started`);
await require('./helper/authdb').initDB();
});