This commit is contained in:
Jamie Curnow 2022-06-01 12:09:35 +04:00
parent 3267832fe5
commit f37bb2e7dc
3 changed files with 46 additions and 0 deletions

View File

@ -47,6 +47,7 @@ func List() []Provider {
getDNSCyon(), getDNSCyon(),
getDNSDgon(), getDNSDgon(),
getDNSDNSimple(), getDNSDNSimple(),
getDNSDa(),
getDNSDp(), getDNSDp(),
getDNSDreamhost(), getDNSDreamhost(),
getDNSDuckDNS(), getDNSDuckDNS(),

View File

@ -0,0 +1,42 @@
package dnsproviders
const daSchema = `
{
"type": "object",
"required": [
"api_url"
],
"additionalProperties": false,
"properties": {
"api_url": {
"type": "string",
"minLength": 4
},
"insecure": {
"type": "boolean"
}
}
}
`
func getDNSDa() Provider {
return Provider{
AcmeshName: "dns_da",
Schema: daSchema,
Fields: []providerField{
{
Name: "API URL",
Type: "text",
MetaKey: "api_url",
EnvKey: "DA_Api",
IsRequired: true,
},
{
Name: "Insecure",
Type: "boolean",
MetaKey: "insecure",
EnvKey: "DA_Api_Insecure",
},
},
}
}

View File

@ -29,6 +29,9 @@
"acmesh.dns_cyon": { "acmesh.dns_cyon": {
"defaultMessage": "Cyon.ch" "defaultMessage": "Cyon.ch"
}, },
"acmesh.dns_da": {
"defaultMessage": "DirectAdmin"
},
"acmesh.dns_dgon": { "acmesh.dns_dgon": {
"defaultMessage": "DigitalOcean" "defaultMessage": "DigitalOcean"
}, },