2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 09:13:49 +08:00

feat: 移除hetzner dns

This commit is contained in:
2025-11-07 11:53:42 +08:00
parent 24e1dafc53
commit 4334408c53
7 changed files with 2 additions and 29 deletions

1
go.mod
View File

@@ -32,7 +32,6 @@ require (
github.com/libdns/cloudflare v0.2.2
github.com/libdns/cloudns v1.1.0
github.com/libdns/gcore v0.0.0-20250427050847-9964da923833
github.com/libdns/hetzner v1.0.0
github.com/libdns/huaweicloud v1.0.0
github.com/libdns/libdns v1.1.1
github.com/libdns/namesilo v1.0.0

2
go.sum
View File

@@ -236,8 +236,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/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=
github.com/libdns/huaweicloud v1.0.0/go.mod h1:W+XywkW+C93fM50Ayklf6KuoCHZTqbrmFUEtpQnVvcU=
github.com/libdns/libdns v1.0.0-beta.1/go.mod h1:4Bj9+5CQiNMVGf87wjX4CY3HQJypUHRuLvlsfsZqLWQ=

View File

@@ -3,14 +3,14 @@ package request
import "github.com/acepanel/panel/pkg/acme"
type CertDNSCreate struct {
Type acme.DnsType `form:"type" json:"type" validate:"required|in:aliyun,tencent,huawei,westcn,cloudflare,gcore,porkbun,namesilo,cloudns,hetzner"`
Type acme.DnsType `form:"type" json:"type" validate:"required|in:aliyun,tencent,huawei,westcn,cloudflare,gcore,porkbun,namesilo,cloudns"`
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,gcore,porkbun,namesilo,cloudns,hetzner"`
Type acme.DnsType `form:"type" json:"type" validate:"required|in:aliyun,tencent,huawei,westcn,cloudflare,gcore,porkbun,namesilo,cloudns"`
Name string `form:"name" json:"name" validate:"required"`
Data acme.DNSParam `form:"data" json:"data" validate:"required"`
}

View File

@@ -92,10 +92,6 @@ func (s *CertService) DNSProviders(w http.ResponseWriter, r *http.Request) {
Label: s.t.Get("ClouDNS"),
Value: string(acme.ClouDNS),
},
{
Label: s.t.Get("Hetzner"),
Value: string(acme.Hetzner),
},
})
}

View File

@@ -11,7 +11,6 @@ import (
"github.com/libdns/cloudflare"
"github.com/libdns/cloudns"
"github.com/libdns/gcore"
"github.com/libdns/hetzner"
"github.com/libdns/huaweicloud"
"github.com/libdns/libdns"
"github.com/libdns/namesilo"
@@ -190,10 +189,6 @@ func (s *dnsSolver) getDNSProvider() (DNSProvider, error) {
AuthPassword: s.param.SK,
}
}
case Hetzner:
dns = &hetzner.Provider{
AuthAPIToken: s.param.AK,
}
default:
return nil, fmt.Errorf("unsupported DNS provider: %s", s.dns)
}
@@ -213,7 +208,6 @@ const (
Porkbun DnsType = "porkbun"
NameSilo DnsType = "namesilo"
ClouDNS DnsType = "cloudns"
Hetzner DnsType = "hetzner"
)
type DNSParam struct {

View File

@@ -169,13 +169,6 @@ const handleCreateDNS = async () => {
:placeholder="$gettext('Enter ClouDNS Auth Password')"
/>
</n-form-item>
<n-form-item v-if="model.type == 'hetzner'" path="ak" label="Auth API Token">
<n-input
v-model:value="model.data.ak"
type="text"
:placeholder="$gettext('Enter Hetzner Auth API Token')"
/>
</n-form-item>
</n-form>
<n-button type="info" block @click="handleCreateDNS">{{ $gettext('Submit') }}</n-button>
</n-space>

View File

@@ -306,13 +306,6 @@ onUnmounted(() => {
:placeholder="$gettext('Enter ClouDNS Auth Password')"
/>
</n-form-item>
<n-form-item v-if="updateDNSModel.type == 'hetzner'" path="ak" label="Auth API Token">
<n-input
v-model:value="updateDNSModel.data.ak"
type="text"
:placeholder="$gettext('Enter Hetzner Auth API Token')"
/>
</n-form-item>
</n-form>
<n-button type="info" block @click="handleUpdateDNS">{{ $gettext('Submit') }}</n-button>
</n-space>