mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-07-04 17:06:49 +00:00
Moved v3 code from NginxProxyManager/nginx-proxy-manager-3 to NginxProxyManager/nginx-proxy-manager
This commit is contained in:
58
backend/internal/dnsproviders/dns_dyn.go
Normal file
58
backend/internal/dnsproviders/dns_dyn.go
Normal file
@ -0,0 +1,58 @@
|
||||
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,
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user