TrueNas does not natively provide a way to send alerts and notifications to a Gotify server. This repo 'abuses' the TrueNas Slack alert integration and provides a fake slack webhook endpoint to forward alerts to a Gotify server. Note that Slack is not required at all for this integration to work.
-
Apps -> Discover Apps -> Custom App
-
Enter an Application Name, e.g. "truenas-gotify"
-
Image Repository: ghcr.io/ztube/truenas-gotify-adapter
-
Image Tag: main
-
Environment Variables:
- Name: GOTIFY_URL
- Value: [your gotify url] e.g.https://gotify.example.com/
- Name: GOTIFY_TOKEN
- Value: [your gotify app token] e.g. cGVla2Fib29v
-
Network Configuration:
- Check "Host Network"
-
Save
-
-
System -> Alert Settings -> Add
- Type: Slack
- Webhook URL: http://localhost:31662
- Click Send Test Alert to test the connection
- Save