add simple webhook feature for peer, interface and user events (#398)

This commit is contained in:
Christoph
2025-04-19 21:29:26 +02:00
parent e75a32e4d0
commit 9354a1d9d3
14 changed files with 411 additions and 51 deletions

View File

@@ -62,6 +62,8 @@ type Config struct {
Database DatabaseConfig `yaml:"database"`
Web WebConfig `yaml:"web"`
Webhook WebhookConfig `yaml:"webhook"`
}
// LogStartupValues logs the startup values of the configuration in debug level
@@ -158,6 +160,10 @@ func defaultConfig() *Config {
LinkOnly: false,
}
cfg.Webhook.Url = "" // no webhook by default
cfg.Webhook.Authentication = ""
cfg.Webhook.Timeout = 10 * time.Second
return cfg
}