dns_loopia

This commit is contained in:
Jamie Curnow 2022-06-01 12:21:14 +04:00
parent 671715042e
commit 322048d5af
3 changed files with 62 additions and 0 deletions

View File

@ -62,6 +62,7 @@ func List() []Provider {
getDNSIspconfig(),
getDNSKinghost(),
getDNSLinodeV4(),
getDNSLoopia(),
getDNSLua(),
getDNSMe(),
getDNSNamecom(),

View File

@ -0,0 +1,58 @@
package dnsproviders
const loopiaSchema = `
{
"type": "object",
"required": [
"api_url",
"user",
"password"
],
"additionalProperties": false,
"properties": {
"api_url": {
"type": "string",
"minLength": 4
},
"user": {
"type": "string",
"minLength": 1
},
"password": {
"type": "string",
"minLength": 1
}
}
}
`
func getDNSLoopia() Provider {
return Provider{
AcmeshName: "dns_loopia",
Schema: loopiaSchema,
Fields: []providerField{
{
Name: "API URL",
Type: "text",
MetaKey: "api_url",
EnvKey: "LOOPIA_Api",
IsRequired: true,
},
{
Name: "User",
Type: "text",
MetaKey: "user",
EnvKey: "LOOPIA_User",
IsRequired: true,
},
{
Name: "Password",
Type: "password",
MetaKey: "password",
EnvKey: "LOOPIA_Password",
IsRequired: true,
IsSecret: true,
},
},
}
}

View File

@ -80,6 +80,9 @@
"acmesh.dns_linode_v4": {
"defaultMessage": "Linode"
},
"acmesh.dns_loopia": {
"defaultMessage": "Loopia"
},
"acmesh.dns_lua": {
"defaultMessage": "LuaDNS"
},