mirror of
https://github.com/jc21/nginx-proxy-manager.git
synced 2024-08-30 18:22:48 +00:00
59 lines
953 B
Go
59 lines
953 B
Go
package dnsproviders
|
|
|
|
const dynSchema = `
|
|
{
|
|
"type": "object",
|
|
"required": [
|
|
"customer",
|
|
"username",
|
|
"password"
|
|
],
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"customer": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"username": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"password": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
}
|
|
}
|
|
}
|
|
`
|
|
|
|
func getDNSDyn() Provider {
|
|
return Provider{
|
|
AcmeshName: "dns_dyn",
|
|
Schema: dynSchema,
|
|
Fields: []providerField{
|
|
{
|
|
Name: "Customer",
|
|
Type: "text",
|
|
MetaKey: "customer",
|
|
EnvKey: "DYN_Customer",
|
|
IsRequired: true,
|
|
},
|
|
{
|
|
Name: "Username",
|
|
Type: "text",
|
|
MetaKey: "username",
|
|
EnvKey: "DYN_Username",
|
|
IsRequired: true,
|
|
},
|
|
{
|
|
Name: "Password",
|
|
Type: "password",
|
|
MetaKey: "password",
|
|
EnvKey: "DYN_Password",
|
|
IsRequired: true,
|
|
IsSecret: true,
|
|
},
|
|
},
|
|
}
|
|
}
|