nginx-proxy-manager/backend/internal/dnsproviders/dns_servercow.go
2022-06-01 08:51:23 +04:00

47 lines
762 B
Go

package dnsproviders
const servercowSchema = `
{
"type": "object",
"required": [
"user",
"password"
],
"additionalProperties": false,
"properties": {
"user": {
"type": "string",
"minLength": 1
},
"password": {
"type": "string",
"minLength": 1
}
}
}
`
func getDNSServercow() Provider {
return Provider{
AcmeshName: "dns_servercow",
Schema: servercowSchema,
Fields: []providerField{
{
Name: "User",
Type: "text",
MetaKey: "user",
EnvKey: "SERVERCOW_API_Username",
IsRequired: true,
},
{
Name: "Password",
Type: "password",
MetaKey: "password",
EnvKey: "SERVERCOW_API_Password",
IsRequired: true,
IsSecret: true,
},
},
}
}