Here is an example of a notification config to send backups events to the Slack channel.
You can find out how to create a webhook in slack in the official documentation
notifications:
webhooks:
- webhook_url: https://hooks.slack.com/services/T01ALFD17S5/B04AUP0DQTX/OkMtk1cq307xiiFb3rc13W
enabled: true
payload_message_key: "text"
`webhooks` reference for nxs-backup.conf:
webhooks: list
# Enables this notification channel
- enabled: bool # Default: true
# URL where the webhook request will be sent. POST method is used to send webhooks. When sending a POST request, the body is json.
webhook_url: string # Required
# The json key is defined, which will contain the event message.
payload_message_key: string # Required
# Here you can define additional json key/value pairs to customize your request body. For example, to set style.
extra_payload: map # Optional
# Here you can define additional json key/value pairs to customize your request headers, if it is required. For example, to auth your request.
extra_headers: map # Optional
# Allows you to send a request to a server with a self-signed certificate.
insecure_tls: bool # Default: false
# Here it defines the minimum level of events to be sent to the webhook. Each event in the log has a certain level: "error", "warning", "info", "debug".
message_level: string # Default: warning