Added ability to set/add Webhook Token in payload

This commit is contained in:
2024-02-12 16:50:56 +13:00
parent 13e2fa6f7b
commit ddd6326a6e
5 changed files with 27 additions and 26 deletions

View File

@@ -24,6 +24,7 @@ type Config struct {
DnsRecordsToCheck []string
PublicIpResolverTag string
ApiToken string
WebhookToken string
CloudflareZone string
OnChangeComment string
Notifiers []string
@@ -61,5 +62,6 @@ func NewConfig() Config {
OnChangeComment: os.Getenv(envKeyOnChangeComment),
Notifiers: parseCommaDelimited(os.Getenv(envKeyNotifiers)),
CheckInterval: time.Duration(checkInterval) * time.Second,
WebhookToken: os.Getenv("WEBHOOK_TOKEN"),
}
}