From 3bfdc2125675b29f944f20e9c631625be37d78a2 Mon Sep 17 00:00:00 2001 From: Jamie Curnow Date: Wed, 1 Jun 2022 09:11:06 +0400 Subject: [PATCH] dns_zonomi --- backend/internal/dnsproviders/common.go | 1 + backend/internal/dnsproviders/dns_zonomi.go | 18 ++++++++++++++++++ frontend/src/locale/src/en.json | 3 +++ 3 files changed, 22 insertions(+) create mode 100644 backend/internal/dnsproviders/dns_zonomi.go diff --git a/backend/internal/dnsproviders/common.go b/backend/internal/dnsproviders/common.go index fdbd0ee4..c71b4a31 100644 --- a/backend/internal/dnsproviders/common.go +++ b/backend/internal/dnsproviders/common.go @@ -70,6 +70,7 @@ func List() []Provider { getDNSUnoeuro(), getDNSVscale(), getDNSYandex(), + getDNSZonomi(), } } diff --git a/backend/internal/dnsproviders/dns_zonomi.go b/backend/internal/dnsproviders/dns_zonomi.go new file mode 100644 index 00000000..052e1732 --- /dev/null +++ b/backend/internal/dnsproviders/dns_zonomi.go @@ -0,0 +1,18 @@ +package dnsproviders + +func getDNSZonomi() Provider { + return Provider{ + AcmeshName: "dns_zonomi", + Schema: commonKeySchema, + Fields: []providerField{ + { + Name: "API Key", + Type: "password", + MetaKey: "api_key", + EnvKey: "ZM_Key", + IsRequired: true, + IsSecret: true, + }, + }, + } +} diff --git a/frontend/src/locale/src/en.json b/frontend/src/locale/src/en.json index 38660e35..58da933c 100644 --- a/frontend/src/locale/src/en.json +++ b/frontend/src/locale/src/en.json @@ -104,6 +104,9 @@ "acmesh.dns_yandex": { "defaultMessage": "pdd.yandex.ru" }, + "acmesh.dns_zonomi": { + "defaultMessage": "Zonomi" + }, "action.edit": { "defaultMessage": "Edit" },