Gotify โ
Send push notifications to your self-hosted Gotify server. Gotify is a lightweight, open-source push notification service โ perfect for home lab and self-hosted setups.
Overview โ
- ๐ Self-Hosted โ Full control over your notification infrastructure
- ๐ Priority Levels โ Configurable priorities (0โ10) with automatic escalation on failures
- ๐ Markdown Support โ Rich message formatting with structured fields
- ๐ฑ Mobile Ready โ Android app with real-time push notifications
Configuration โ
| Field | Description | Default | Required |
|---|---|---|---|
| Server URL | Gotify server URL (e.g., https://gotify.example.com) | โ | โ |
| App Token | Application token (from Gotify Apps) | โ | โ |
| Priority | Default message priority (0โ10) | 5 | โ |
Setup Guide โ
1. Install Gotify โ
If you don't have Gotify yet, deploy it using Docker:
yaml
# docker-compose.yml
services:
gotify:
image: gotify/server
ports:
- "8070:80"
volumes:
- gotify-data:/app/data
environment:
GOTIFY_DEFAULTUSER_NAME: admin
GOTIFY_DEFAULTUSER_PASS: admin
volumes:
gotify-data:2. Create an Application Token โ
- Open your Gotify web UI (e.g.,
http://gotify.example.com) - Go to Apps tab
- Click Create Application
- Set a name (e.g., "DBackup")
- Copy the generated App Token
Token Security
The App Token is used to send messages only โ it cannot read or manage other applications. Keep it secret, but it has limited scope.
3. Configure in DBackup โ
- Go to Notifications in the sidebar
- Click Add Notification
- Select Gotify
- Enter the Server URL and App Token
- (Optional) Adjust the default priority
- Click Test to verify
- Save
4. Test the Connection โ
Click Test to send a test notification. You should see a message appear in your Gotify dashboard and on any connected clients.
Priority Levels โ
DBackup maps events to Gotify priorities automatically:
| Priority | Level | When Used |
|---|---|---|
| 0 | Min (silent) | โ |
| 1โ3 | Low | Test notifications |
| 4โ7 | Normal | Successful backups (default: 5) |
| 8โ10 | High | Failed backups (auto-escalated) |
Priority Behavior
- Successful backups use the configured default priority
- Failed backups automatically escalate to priority 8 (high)
- Test notifications use priority 1 (low)
Message Format โ
Notifications are sent as Markdown with structured fields:
## โ
Backup Completed
Backup of "Production MySQL" completed successfully.
**Job:** Production MySQL
**Duration:** 12s
**Size:** 24.5 MB
**Storage:** AWS S3Troubleshooting โ
"401 Unauthorized" โ
- Verify the App Token is correct and hasn't been revoked
- Check that the token belongs to an Application, not a Client
"Connection refused" โ
- Ensure the Gotify server is running and accessible from the DBackup host
- Check firewall rules and Docker network configuration
- Verify the URL includes the correct port (if not using a reverse proxy)
Notifications not appearing on mobile โ
- Ensure the Gotify Android app is connected and the WebSocket connection is active
- Check that the priority is high enough for your client's notification settings
- Some Android manufacturers aggressively kill background apps โ add Gotify to battery optimization exceptions