Send ntfy notifications

This commit is contained in:
Marc Plano-Lesay 2025-05-02 11:19:53 +10:00
parent 77a72329a8
commit bdcc0def42
Signed by: kernald
GPG key ID: 66A41B08CC62A6CF
10 changed files with 289 additions and 44 deletions

View file

@ -0,0 +1,23 @@
use serde::{Deserialize, Serialize};
/// Configuration for the ntfy notification service
#[derive(Debug, Serialize, Deserialize)]
pub struct NtfyConfig {
/// Whether to enable the ntfy notification service
#[serde(default)]
pub enable: bool,
/// The host URL of the ntfy server
pub host: String,
/// The username for authentication (optional)
#[serde(default)]
pub username: Option<String>,
/// The password for authentication (optional)
#[serde(default)]
pub password: Option<String>,
/// The topic to publish notifications to
pub topic: String,
}