add cloudflare provider

This commit is contained in:
yoan
2024-09-02 14:36:46 +08:00
parent 2b8fb9314f
commit 52cca47ec8
15 changed files with 854 additions and 87 deletions

View File

@@ -22,7 +22,7 @@ func (c *cloudflare) Apply() (*Certificate, error) {
access := &domain.CloudflareAccess{}
json.Unmarshal([]byte(c.option.Access), access)
os.Setenv("CLOUDFLARE_DNS_API_TOKEN", access.CloudflareDnsApiToken)
os.Setenv("CLOUDFLARE_DNS_API_TOKEN", access.DnsApiToken)
provider, err := cf.NewDNSProvider()
if err != nil {