diff --git a/backend/internal/dnsproviders/common.go b/backend/internal/dnsproviders/common.go index 116036b..2883b9b 100644 --- a/backend/internal/dnsproviders/common.go +++ b/backend/internal/dnsproviders/common.go @@ -60,6 +60,7 @@ func List() []Provider { getDNSInfoblox(), getDNSInwx(), getDNSIspconfig(), + getDNSKinghost(), getDNSLinodeV4(), getDNSLua(), getDNSMe(), @@ -72,6 +73,7 @@ func List() []Provider { getDNSUnoeuro(), getDNSVscale(), getDNSYandex(), + getDNSDNZilore(), getDNSZonomi(), } } diff --git a/backend/internal/dnsproviders/dns_kinghost.go b/backend/internal/dnsproviders/dns_kinghost.go new file mode 100644 index 0000000..8e3dbcb --- /dev/null +++ b/backend/internal/dnsproviders/dns_kinghost.go @@ -0,0 +1,46 @@ +package dnsproviders + +const kinghostSchema = ` +{ + "type": "object", + "required": [ + "user", + "password" + ], + "additionalProperties": false, + "properties": { + "user": { + "type": "string", + "minLength": 1 + }, + "password": { + "type": "string", + "minLength": 1 + } + } +} +` + +func getDNSKinghost() Provider { + return Provider{ + AcmeshName: "dns_kinghost", + Schema: kinghostSchema, + Fields: []providerField{ + { + Name: "User", + Type: "text", + MetaKey: "user", + EnvKey: "KINGHOST_Username", + IsRequired: true, + }, + { + Name: "Password", + Type: "password", + MetaKey: "password", + EnvKey: "KINGHOST_Password", + IsRequired: true, + IsSecret: true, + }, + }, + } +} diff --git a/backend/internal/dnsproviders/dns_zilore.go b/backend/internal/dnsproviders/dns_zilore.go new file mode 100644 index 0000000..687a042 --- /dev/null +++ b/backend/internal/dnsproviders/dns_zilore.go @@ -0,0 +1,18 @@ +package dnsproviders + +func getDNSDNZilore() Provider { + return Provider{ + AcmeshName: "dns_zilore", + Schema: commonKeySchema, + Fields: []providerField{ + { + Name: "API Key", + Type: "text", + MetaKey: "api_key", + EnvKey: "Zilore_Key", + IsRequired: true, + IsSecret: true, + }, + }, + } +} diff --git a/frontend/src/locale/src/en.json b/frontend/src/locale/src/en.json index b193b18..11b74d8 100644 --- a/frontend/src/locale/src/en.json +++ b/frontend/src/locale/src/en.json @@ -74,6 +74,9 @@ "acmesh.dns_ispconfig": { "defaultMessage": "ISPConfig" }, + "acmesh.dns_kinghost": { + "defaultMessage": "KingHost" + }, "acmesh.dns_linode_v4": { "defaultMessage": "Linode" },