fix
Some checks failed
build-and-deploy / build (push) Successful in 8s
build-and-deploy / deploy (push) Failing after 14s

This commit is contained in:
2025-09-26 21:03:42 -06:00
parent c5a1c6aaf0
commit efb942d4c1
3 changed files with 18 additions and 3 deletions

View File

@@ -0,0 +1,11 @@
version: "3.9"
services:
node:
ports:
- "3000:3000"
volumes:
- ./node-api/index.js:/app/index.js:ro
- ./node-api/src:/app/src:ro
- ./frontend/dist:/app/public:ro

View File

@@ -19,8 +19,10 @@ services:
- PGUSER=radius
- PGPASSWORD=radius
networks:
- radius_net
- principal
radius_net:
principal:
aliases:
- radiusnucleo-node
freeradius:
build: ./freeradius

View File

@@ -20,10 +20,12 @@ export function createApp() {
// REST API
app.use('/api', apiRouter);
// Simple health endpoint for reverse proxies / checks
app.get('/healthz', (_req, res) => res.json({ ok: true }));
app.get('/', (_req, res) => {
res.sendFile(path.join(__dirname, '..', 'public', 'index.html'));
});
return app;
}