nginx-proxy-manager/backend/internal/dnsproviders/dns_namecom.go

47 lines
739 B
Go

package dnsproviders
const nameComSchema = `
{
"type": "object",
"required": [
"username",
"token"
],
"additionalProperties": false,
"properties": {
"username": {
"type": "string",
"minLength": 1
},
"token": {
"type": "string",
"minLength": 1
}
}
}
`
func getDNSNamecom() Provider {
return Provider{
AcmeshName: "dns_namecom",
Schema: nameComSchema,
Fields: []providerField{
{
Name: "Username",
Type: "text",
MetaKey: "username",
EnvKey: "Namecom_Username",
IsRequired: true,
},
{
Name: "Token",
Type: "text",
MetaKey: "token",
EnvKey: "Namecom_Token",
IsRequired: true,
IsSecret: true,
},
},
}
}