nginx-proxy-manager/backend/internal/dnsproviders/dns_autodns.go
Jamie Curnow 07739ee84e dns_azure
2022-06-01 09:02:57 +04:00

59 lines
956 B
Go

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: "text",
MetaKey: "context",
EnvKey: "AUTODNS_CONTEXT",
IsRequired: true,
},
},
}
}