ZTube / truenas-gotify-adapter

Send TrueNas alerts to Gotify
The Unlicense
11 stars 2 forks source link

TrueNas Gotify Adapter

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.

Installation

  1. 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
    • Check "Provide access to node network namespace for the workload"

    • Save

  2. System Settings -> Alert Settings -> Add