diff --git a/go.mod b/go.mod index 820cdeac..33639ba6 100644 --- a/go.mod +++ b/go.mod @@ -27,7 +27,6 @@ require ( github.com/libdns/cloudflare v0.2.2-0.20250708034226-c574dccb31a6 github.com/libdns/cloudns v1.1.0 github.com/libdns/gcore v0.0.0-20250427050847-9964da923833 - github.com/libdns/godaddy v1.1.0 github.com/libdns/hetzner v1.0.0 github.com/libdns/huaweicloud v1.0.0 github.com/libdns/libdns v1.1.0 diff --git a/go.sum b/go.sum index f101e6b3..d93cb1b0 100644 --- a/go.sum +++ b/go.sum @@ -196,8 +196,6 @@ github.com/libdns/cloudns v1.1.0 h1:W+1MadtxKySn3b5RITFTsXgTIvr5VoO5x97cewjlDcs= github.com/libdns/cloudns v1.1.0/go.mod h1:/22V6tYYDALDpM4pw/RGGJ+X2F1Luibty9kKpKvkqBM= github.com/libdns/gcore v0.0.0-20250427050847-9964da923833 h1:/gsawtsq03cI7qgK65v16tYHIh40omL9YEzHWqnc63I= github.com/libdns/gcore v0.0.0-20250427050847-9964da923833/go.mod h1:jZJEV7pCTOJFlaUhHty+YwR05dzoSmInXK/vT3wOeVg= -github.com/libdns/godaddy v1.1.0 h1:mxB107yFulEGApacljrCfaR4faR/9d9SyrGmjD2VubU= -github.com/libdns/godaddy v1.1.0/go.mod h1:ZU6B93OoBN8jTbN97Ud5QdgbNvd6asV0EO8KVrGMWm4= github.com/libdns/hetzner v1.0.0 h1:dFcgqTIfdiKQTqoqBBtgU9CewD8JSnB7p6BKxQ5kheM= github.com/libdns/hetzner v1.0.0/go.mod h1:OmuTyXMHTfy2nCqbt9KYkf0KwQSvo0ZeFGxEQSl3r2w= github.com/libdns/huaweicloud v1.0.0 h1:BQUIkOAjF++ouiANRIE3jdMlCfeiAAr6tGqb+8hM1jo= diff --git a/internal/http/request/cert_dns.go b/internal/http/request/cert_dns.go index 6d083f21..540ce2f4 100644 --- a/internal/http/request/cert_dns.go +++ b/internal/http/request/cert_dns.go @@ -3,14 +3,14 @@ package request import "github.com/tnborg/panel/pkg/acme" type CertDNSCreate struct { - Type acme.DnsType `form:"type" json:"type" validate:"required|in:aliyun,tencent,huawei,westcn,cloudflare,godaddy,gcore,porkbun,namesilo,cloudns,hetzner"` + Type acme.DnsType `form:"type" json:"type" validate:"required|in:aliyun,tencent,huawei,westcn,cloudflare,gcore,porkbun,namesilo,cloudns,hetzner"` Name string `form:"name" json:"name" validate:"required"` Data acme.DNSParam `form:"data" json:"data" validate:"required"` } type CertDNSUpdate struct { ID uint `form:"id" json:"id" validate:"required|exists:cert_dns,id"` - Type acme.DnsType `form:"type" json:"type" validate:"required|in:aliyun,tencent,huawei,westcn,cloudflare,godaddy,gcore,porkbun,namesilo,cloudns,hetzner"` + Type acme.DnsType `form:"type" json:"type" validate:"required|in:aliyun,tencent,huawei,westcn,cloudflare,gcore,porkbun,namesilo,cloudns,hetzner"` Name string `form:"name" json:"name" validate:"required"` Data acme.DNSParam `form:"data" json:"data" validate:"required"` } diff --git a/internal/service/cert.go b/internal/service/cert.go index c1071ca4..759c4af5 100644 --- a/internal/service/cert.go +++ b/internal/service/cert.go @@ -76,10 +76,6 @@ func (s *CertService) DNSProviders(w http.ResponseWriter, r *http.Request) { Label: s.t.Get("CloudFlare"), Value: string(acme.CloudFlare), }, - { - Label: s.t.Get("Godaddy"), - Value: string(acme.Godaddy), - }, { Label: s.t.Get("Gcore"), Value: string(acme.Gcore), diff --git a/pkg/acme/solvers.go b/pkg/acme/solvers.go index c809ecb2..191907db 100644 --- a/pkg/acme/solvers.go +++ b/pkg/acme/solvers.go @@ -11,7 +11,6 @@ import ( "github.com/libdns/cloudflare" "github.com/libdns/cloudns" "github.com/libdns/gcore" - "github.com/libdns/godaddy" "github.com/libdns/hetzner" "github.com/libdns/huaweicloud" "github.com/libdns/libdns" @@ -166,10 +165,6 @@ func (s *dnsSolver) getDNSProvider() (DNSProvider, error) { dns = &cloudflare.Provider{ APIToken: s.param.AK, } - case Godaddy: - dns = &godaddy.Provider{ - APIToken: s.param.AK, - } case Gcore: dns = &gcore.Provider{ APIKey: s.param.AK, @@ -214,7 +209,6 @@ const ( Huawei DnsType = "huawei" Westcn DnsType = "westcn" CloudFlare DnsType = "cloudflare" - Godaddy DnsType = "godaddy" Gcore DnsType = "gcore" Porkbun DnsType = "porkbun" NameSilo DnsType = "namesilo" diff --git a/web/src/views/cert/CreateDnsModal.vue b/web/src/views/cert/CreateDnsModal.vue index 39749811..21ed74ce 100644 --- a/web/src/views/cert/CreateDnsModal.vue +++ b/web/src/views/cert/CreateDnsModal.vue @@ -127,13 +127,6 @@ const handleCreateDNS = async () => { :placeholder="$gettext('Enter Cloudflare API Key')" /> - - - { :placeholder="$gettext('Enter Cloudflare API Key')" /> - - -