You've already forked ddns-updater
Added ability to set/add Webhook Token in payload
This commit is contained in:
@@ -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"),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user