mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-31 22:18:07 +08:00
feat: CloudFlare DNS 证书改为使用 Token (#3164)
Refs https://github.com/1Panel-dev/1Panel/issues/3139
This commit is contained in:
parent
cceed9c2ea
commit
d2a01fb0e0
@ -110,7 +110,7 @@ func (c *AcmeClient) UseDns(dnsType DnsType, params string) error {
|
|||||||
case CloudFlare:
|
case CloudFlare:
|
||||||
cloudflareConfig := cloudflare.NewDefaultConfig()
|
cloudflareConfig := cloudflare.NewDefaultConfig()
|
||||||
cloudflareConfig.AuthEmail = param.Email
|
cloudflareConfig.AuthEmail = param.Email
|
||||||
cloudflareConfig.AuthKey = param.APIkey
|
cloudflareConfig.AuthToken = param.APIkey
|
||||||
cloudflareConfig.PropagationTimeout = 60 * time.Minute
|
cloudflareConfig.PropagationTimeout = 60 * time.Minute
|
||||||
cloudflareConfig.PollingInterval = 5 * time.Second
|
cloudflareConfig.PollingInterval = 5 * time.Second
|
||||||
cloudflareConfig.TTL = 3600
|
cloudflareConfig.TTL = 3600
|
||||||
|
Loading…
x
Reference in New Issue
Block a user