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

Refs https://github.com/1Panel-dev/1Panel/issues/3139
This commit is contained in:
zhengkunwang 2023-12-04 15:44:10 +08:00 committed by GitHub
parent cceed9c2ea
commit d2a01fb0e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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