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:
Check "Provide access to node network namespace for the workload"
Save
System Settings -> Alert Settings -> Add