mirror of
https://git.proxmox.com/git/proxmox
synced 2025-04-28 22:36:20 +00:00
![]() This target type allows users to perform HTTP requests to arbitrary third party (notification) services, for instance ntfy.sh/Discord/Slack. The configuration for these endpoints allows one to freely configure the URL, HTTP Method, headers and body. The URL, header values and body support handlebars templating to inject notification text, metadata and secrets. Secrets are stored in the protected configuration file (e.g. /etc/pve/priv/notification.cfg) as key value pairs, allowing users to protect sensitive tokens/passwords. Secrets are accessible in handlebar templating via the secrets.* namespace, e.g. if there is a secret named 'token', a body could contain '{{ secrets.token }}' to inject the token into the payload. A couple of handlebars helpers are also provided: - url-encoding (useful for templating in URLs) - escape (escape any control characters in strings) - json (print a property as json) In the configuration, the body, header values and secret values are stored in base64 encoding so that we can store any string we want. Signed-off-by: Lukas Wagner <l.wagner@proxmox.com> Tested-By: Stefan Hanreich <s.hanreich@proxmox.com> |
||
---|---|---|
.. | ||
debian | ||
src | ||
Cargo.toml |