Channels

Last updated

/jabali-admin/notifications/channels. The server-wide places where notifications are delivered. Every enabled channel receives every event that is on; see Routing.

Channel kinds

KindConfiguration
EmailTo and From addresses. Mail goes out through the panel’s own Stalwart by default. You can use an external SMTP server instead: set its host, port, username, password and TLS mode (starttls, tls or none).
SlackIncoming-webhook URL.
DiscordWebhook URL.
TelegramBot token and chat ID.
ntfyTopic URL, on ntfy.sh or a self-hosted ntfy server.
WebhookURL, with an optional bearer token and HMAC secret.
SMSGateway URL and a phone number in E.164 format.
Web PushBrowser push. Turn it on for your browser on the Web Push tab.

The in-app bell is not a channel. Every event that is on reaches the bell.

Testing a channel

Test on a channel’s row sends that channel a test message. The edit drawer has a Send test button too. A received test proves that the credentials and the connection work.

Enabling and disabling

A disabled channel receives nothing. A channel that fails 3 times in a row is disabled automatically, and the panel fires notifications.channel.auto_disabled.

Tenant channels

When an admin turns on tenant notifications, tenants can create their own channels. Those channels appear in this list with the Owner column set to Tenant, and an admin can disable or delete them. A tenant channel receives only events about that tenant that the tenant routed to it. See Notifications.

Web Push keys

VAPID keys are auto-generated on first install. Rotating them under Server Settings invalidates every active Web Push subscription; users must subscribe again.

CLI

jabali notification channels list
jabali notification channels create --name ops-ntfy --kind ntfy --config '{"url":"https://ntfy.sh/my-topic"}'
jabali notification channels test <id>
jabali notification channels delete <id> --force

Architecture

Producers add each event to the Redis stream jabali:notifications:queue. The dispatcher inside the panel process reads the stream and calls the sender for each target channel. An event that still fails after 5 tries moves to jabali:notifications:dlq, shown on the Dead Letter tab. Each sender is one Go file under panel-api/internal/notifications/senders/.