mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 07:57:21 +08:00
feat: 移除 Godaddy DNS
This commit is contained in:
1
go.mod
1
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
|
||||
|
||||
2
go.sum
2
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=
|
||||
|
||||
@@ -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"`
|
||||
}
|
||||
|
||||
@@ -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),
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -127,13 +127,6 @@ const handleCreateDNS = async () => {
|
||||
:placeholder="$gettext('Enter Cloudflare API Key')"
|
||||
/>
|
||||
</n-form-item>
|
||||
<n-form-item v-if="model.type == 'godaddy'" path="ak" label="Token">
|
||||
<n-input
|
||||
v-model:value="model.data.ak"
|
||||
type="text"
|
||||
:placeholder="$gettext('Enter GoDaddy Token')"
|
||||
/>
|
||||
</n-form-item>
|
||||
<n-form-item v-if="model.type == 'gcore'" path="ak" label="API Key">
|
||||
<n-input
|
||||
v-model:value="model.data.ak"
|
||||
|
||||
@@ -264,13 +264,6 @@ onUnmounted(() => {
|
||||
:placeholder="$gettext('Enter Cloudflare API Key')"
|
||||
/>
|
||||
</n-form-item>
|
||||
<n-form-item v-if="updateDNSModel.type == 'godaddy'" path="ak" label="Token">
|
||||
<n-input
|
||||
v-model:value="updateDNSModel.data.ak"
|
||||
type="text"
|
||||
:placeholder="$gettext('Enter GoDaddy Token')"
|
||||
/>
|
||||
</n-form-item>
|
||||
<n-form-item v-if="updateDNSModel.type == 'gcore'" path="ak" label="API Key">
|
||||
<n-input
|
||||
v-model:value="updateDNSModel.data.ak"
|
||||
|
||||
Reference in New Issue
Block a user