From d2a01fb0e04b260e3e19e84e262934d71b537dc8 Mon Sep 17 00:00:00 2001 From: zhengkunwang <31820853+zhengkunwang223@users.noreply.github.com> Date: Mon, 4 Dec 2023 15:44:10 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20CloudFlare=20DNS=20=E8=AF=81=E4=B9=A6?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E4=BD=BF=E7=94=A8=20Token=20(#3164)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs https://github.com/1Panel-dev/1Panel/issues/3139 --- backend/utils/ssl/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/utils/ssl/client.go b/backend/utils/ssl/client.go index d09b81dd2..cfc57dd08 100644 --- a/backend/utils/ssl/client.go +++ b/backend/utils/ssl/client.go @@ -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