Compare commits

...

2 Commits

Author SHA1 Message Date
valknar 5985d8619f fix(backup): use message field in webhook payload, matching watchtower
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-08 22:36:16 +02:00
valknar eed45f1627 docs: update README — add notifications section for n8n/Telegram
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-08 22:30:40 +02:00
2 changed files with 11 additions and 1 deletions
+10
View File
@@ -68,6 +68,16 @@ ssh vps 'systemctl status stacks-backup.timer'
ssh vps 'source ~/stacks/_backup/.env && restic -r /mnt/hidrive/users/valknar/Backup/stacks snapshots'
```
## Notifications
Watchtower and the backup script both POST to an n8n webhook, which forwards messages to Telegram.
The webhook URL is set in two places:
- `_backup/.env``WEBHOOK_URL`
- `watchtower/.env``NOTIFICATION_URL` (uses `generic+https://` shoutrrr scheme)
Both point to the same n8n workflow at `https://n8n.pivoine.art`. The workflow accepts `{ "message": "..." }` from both senders and forwards it to Telegram.
## Data
Persistent data is stored in `~/stacks/.data/<stack>/` on the VPS using bind mounts. Database stacks use dedicated Postgres instances with simple credentials.
+1 -1
View File
@@ -20,7 +20,7 @@ notify() {
local color="$1" text="$2"
curl -sf -o /dev/null -X POST "$WEBHOOK_URL" \
-H 'Content-Type: application/json' \
-d "{\"text\":\"$text\",\"color\":\"$color\"}"
-d "{\"message\":\"$text\",\"color\":\"$color\"}"
}
# Truncate log on each run