dns_servercow
This commit is contained in:
parent
d1bb22d768
commit
5729dddaf9
@ -60,6 +60,7 @@ func List() []Provider {
|
||||
getDNSLua(),
|
||||
getDNSMe(),
|
||||
getDNSNamecom(),
|
||||
getDNSServercow(),
|
||||
getDNSOne(),
|
||||
getDNSPDNS(),
|
||||
getDNSUnoeuro(),
|
||||
|
46
backend/internal/dnsproviders/dns_servercow.go
Normal file
46
backend/internal/dnsproviders/dns_servercow.go
Normal file
@ -0,0 +1,46 @@
|
||||
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,
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user