Ntfy notifications¶
Notifications can be sent using a ntfy instance.
Configuration¶
File
notif:
ntfy:
endpoint: https://ntfy.sh
topic: diun-acce65a0-b777-46f9-9a11-58c67d1579c4
priority: 3
tags:
- whale
icon: https://raw.githubusercontent.com/crazy-max/diun/master/.res/diun.png
click: "https://dock.example.com/compose/{{ .Entry.Metadata.stack }}"
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 |
https://ntfy.sh |
Ntfy base URL |
token |
Access token | |
tokenFile |
Use content of secret file as acess token if token not defined |
|
topic |
Ntfy topic | |
priority |
3 | The priority of the message |
tags |
["package"] |
Emoji to go in your notiication |
icon |
Diun logo | URL to use as notification icon |
click |
URL to open when the notification is clicked. Supports notification templates | |
timeout |
10s |
Timeout specifies a time limit for the request to be made |
proxy |
HTTP proxy URL to use for requests | |
tlsSkipVerify |
false |
Skip TLS certificate verification |
tlsCaCertFiles |
List of paths to custom CA certificate files to use for TLS verification | |
templateTitle1 |
See below | Notification template for message title |
templateBody1 |
See below | Notification template for message body |
Environment variables
DIUN_NOTIF_NTFY_ENDPOINTDIUN_NOTIF_NTFY_TOKENDIUN_NOTIF_NTFY_TOKENFILEDIUN_NOTIF_NTFY_TOPICDIUN_NOTIF_NTFY_PRIORITYDIUN_NOTIF_NTFY_TAGSDIUN_NOTIF_NTFY_ICONDIUN_NOTIF_NTFY_CLICKDIUN_NOTIF_NTFY_TIMEOUTDIUN_NOTIF_NTFY_PROXYDIUN_NOTIF_NTFY_TLSSKIPVERIFYDIUN_NOTIF_NTFY_TLSCACERTFILESDIUN_NOTIF_NTFY_TEMPLATETITLEDIUN_NOTIF_NTFY_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).