Skip to content

Gotify notifications

Notifications can be sent using a Gotify instance.

Configuration

File

notif:
  gotify:
    endpoint: http://gotify.foo.com
    token: Token123456
    priority: 1
    timeout: 10s
    templateTitle: "{{ .Entry.Image }} released"
    templateBody: |
      Docker tag {{ .Entry.Image }} which you subscribed to through {{ .Entry.Provider }} provider has been released.
Name Default Description
endpoint1 Gotify base URL
token Application token
tokenFile Use content of secret file as application token if token not defined
priority 1 The priority of the message
timeout 10s Timeout specifies a time limit for the request to be made
templateTitle1 See below Notification template for message title
templateBody1 See below Notification template for message body

Environment variables

  • DIUN_NOTIF_GOTIFY_ENDPOINT
  • DIUN_NOTIF_GOTIFY_TOKEN
  • DIUN_NOTIF_GOTIFY_TOKENFILE
  • DIUN_NOTIF_GOTIFY_PRIORITY
  • DIUN_NOTIF_GOTIFY_TIMEOUT
  • DIUN_NOTIF_GOTIFY_TEMPLATETITLE
  • DIUN_NOTIF_GOTIFY_TEMPLATEBODY

Default templateTitle

{{ .Entry.Image }} {{ if (eq .Entry.Status "new") }}is available{{ else }}has been updated{{ end }}

Default templateBody

Docker tag {{ if .Entry.Image.HubLink }}[**{{ .Entry.Image }}**]({{ .Entry.Image.HubLink }}){{ else }}**{{ .Entry.Image }}**{{ end }}
which you subscribed to through {{ .Entry.Provider }} provider {{ if (eq .Entry.Status "new") }}is available{{ else }}has been updated{{ end }}
on {{ .Entry.Image.Domain }} registry (triggered by {{ .Meta.Hostname }} host).

Sample


  1. Value required 


Last update: 2021-06-25 21:24:02
Created: 2020-06-19 22:47:17