Signal-REST notifications¶
The notification uses the Signal REST API.
You can send Signal notifications via the Signal REST API with the following settings.
Configuration¶
File
notif:
signalrest:
endpoint: http://192.168.42.50:8080/v2/send
number: "+00471147111337"
recipients:
- "+00472323111337"
timeout: 10s
templateBody: |
Docker tag {{ .Entry.Image }} which you subscribed to through {{ .Entry.Provider }} provider has been released.
Name | Default | Description |
---|---|---|
endpoint |
http://localhost:8080/v2/send |
URL of the Signal REST API endpoint |
number 1 |
The senders number you registered | |
recipients 1 |
A list of recipients, either phone numbers or group ID's | |
timeout |
10s |
Timeout specifies a time limit for the request to be made |
templateBody 1 |
See below | Notification template for message body |
Environment variables
DIUN_NOTIF_SIGNALREST_ENDPOINT
DIUN_NOTIF_SIGNALREST_NUMBER
DIUN_NOTIF_SIGNALREST_RECIPIENTS_<KEY>
DIUN_NOTIF_SIGNALREST_TIMEOUT
Default templateBody
¶
Docker tag {{ .Entry.Image }} 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¶
The message you receive in your Signal App will look like this:
Docker tag docker.io/diun/testnotif:latest which you subscribed to through file provider new has been updated on docker.io registry (triggered by 5bfaae601770 host).
Last update:
2022-12-29 06:47:38
Created: 2022-10-08 01:49:27
Created: 2022-10-08 01:49:27