topic name configurable

This commit is contained in:
counterweight 2025-10-16 09:55:32 +02:00
parent c0a3a30f60
commit cd5bbfc670
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
4 changed files with 7 additions and 2 deletions

View file

@ -9,7 +9,7 @@ const PORT = process.env.PORT || 3000;
const NTFY_URL = process.env.NTFY_URL;
const NTFY_USER = process.env.NTFY_USER;
const NTFY_PASSWORD = process.env.NTFY_PASSWORD;
const NTFY_TOPIC = 'emergencia';
const NTFY_TOPIC = process.env.NTFY_TOPIC || 'emergencia';
// Middleware
app.use(express.json());