feat: CloudFlare DNS 证书改为使用 Token (#3164)

Refs https://github.com/1Panel-dev/1Panel/issues/3139
pull/3166/head
zhengkunwang 12 months ago committed by GitHub
parent cceed9c2ea
commit d2a01fb0e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -110,7 +110,7 @@ func (c *AcmeClient) UseDns(dnsType DnsType, params string) error {
case CloudFlare:
cloudflareConfig := cloudflare.NewDefaultConfig()
cloudflareConfig.AuthEmail = param.Email
cloudflareConfig.AuthKey = param.APIkey
cloudflareConfig.AuthToken = param.APIkey
cloudflareConfig.PropagationTimeout = 60 * time.Minute
cloudflareConfig.PollingInterval = 5 * time.Second
cloudflareConfig.TTL = 3600

Loading…
Cancel
Save