From e31b01b80e22c28cb7389998d73489b5220da0fd Mon Sep 17 00:00:00 2001 From: Jamie Curnow Date: Wed, 1 Jun 2022 09:22:40 +0400 Subject: [PATCH] dns_dreamhost --- backend/internal/dnsproviders/common.go | 1 + backend/internal/dnsproviders/dns_dreamhost.go | 18 ++++++++++++++++++ frontend/src/locale/src/en.json | 3 +++ 3 files changed, 22 insertions(+) create mode 100644 backend/internal/dnsproviders/dns_dreamhost.go diff --git a/backend/internal/dnsproviders/common.go b/backend/internal/dnsproviders/common.go index c71b4a31..cab6187d 100644 --- a/backend/internal/dnsproviders/common.go +++ b/backend/internal/dnsproviders/common.go @@ -48,6 +48,7 @@ func List() []Provider { getDNSDgon(), getDNSDNSimple(), getDNSDp(), + getDNSDreamhost(), getDNSDuckDNS(), getDNSDyn(), getDNSDynu(), diff --git a/backend/internal/dnsproviders/dns_dreamhost.go b/backend/internal/dnsproviders/dns_dreamhost.go new file mode 100644 index 00000000..95ebc795 --- /dev/null +++ b/backend/internal/dnsproviders/dns_dreamhost.go @@ -0,0 +1,18 @@ +package dnsproviders + +func getDNSDreamhost() Provider { + return Provider{ + AcmeshName: "dns_dreamhost", + Schema: commonKeySchema, + Fields: []providerField{ + { + Name: "API Key", + Type: "password", + MetaKey: "api_key", + EnvKey: "DH_API_KEY", + IsRequired: true, + IsSecret: true, + }, + }, + } +} diff --git a/frontend/src/locale/src/en.json b/frontend/src/locale/src/en.json index 58da933c..9882cfff 100644 --- a/frontend/src/locale/src/en.json +++ b/frontend/src/locale/src/en.json @@ -38,6 +38,9 @@ "acmesh.dns_dp": { "defaultMessage": "DNSPod.cn" }, + "acmesh.dns_dreamhost": { + "defaultMessage": "DreamHost" + }, "acmesh.dns_duckdns": { "defaultMessage": "DuckDNS" },