dns_autodns

This commit is contained in:
Jamie Curnow 2022-06-01 08:57:20 +04:00
parent 9dcb1e1c9c
commit 91d23be4e3
3 changed files with 62 additions and 0 deletions

View File

@ -39,6 +39,7 @@ func List() []Provider {
getDNSAd(),
getDNSAli(),
getDNSAws(),
getDNSAutoDNS(),
getDNSCf(),
getDNSCloudns(),
getDNSCx(),

View File

@ -0,0 +1,58 @@
package dnsproviders
const autoDNSSchema = `
{
"type": "object",
"required": [
"user",
"password",
"context"
],
"additionalProperties": false,
"properties": {
"user": {
"type": "string",
"minLength": 1
},
"password": {
"type": "string",
"minLength": 1
},
"context": {
"type": "string",
"minLength": 1
}
}
}
`
func getDNSAutoDNS() Provider {
return Provider{
AcmeshName: "dns_autodns",
Schema: autoDNSSchema,
Fields: []providerField{
{
Name: "User",
Type: "text",
MetaKey: "user",
EnvKey: "AUTODNS_USER",
IsRequired: true,
},
{
Name: "Password",
Type: "password",
MetaKey: "password",
EnvKey: "AUTODNS_PASSWORD",
IsRequired: true,
IsSecret: true,
},
{
Name: "Context",
Type: "string",
MetaKey: "context",
EnvKey: "AUTODNS_CONTEXT",
IsRequired: true,
},
},
}
}

View File

@ -11,6 +11,9 @@
"acmesh.dns_aws": {
"defaultMessage": "AWS Route53"
},
"acmesh.dns_autodns": {
"defaultMessage": "autoDNS (InternetX)"
},
"acmesh.dns_cf": {
"defaultMessage": "Cloudflare"
},