mirror of
https://github.com/jc21/nginx-proxy-manager.git
synced 2024-08-30 18:22:48 +00:00
70 lines
1.1 KiB
Go
70 lines
1.1 KiB
Go
package dnsproviders
|
|
|
|
const acmeDNSchema = `
|
|
{
|
|
"type": "object",
|
|
"required": [
|
|
"api_url",
|
|
"user",
|
|
"password"
|
|
],
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"api_url": {
|
|
"type": "string",
|
|
"minLength": 4
|
|
},
|
|
"subdomain": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"user": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"password": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
}
|
|
}
|
|
}
|
|
`
|
|
|
|
func getDNSAcmeDNS() Provider {
|
|
return Provider{
|
|
AcmeshName: "dns_acmedns",
|
|
Schema: acmeDNSchema,
|
|
Fields: []providerField{
|
|
{
|
|
Name: "Base URL",
|
|
Type: "text",
|
|
MetaKey: "api_url",
|
|
EnvKey: "ACMEDNS_BASE_URL",
|
|
IsRequired: true,
|
|
},
|
|
{
|
|
Name: "Subdomain",
|
|
Type: "text",
|
|
MetaKey: "subdomain",
|
|
EnvKey: "ACMEDNS_SUBDOMAIN",
|
|
IsRequired: true,
|
|
},
|
|
{
|
|
Name: "User",
|
|
Type: "text",
|
|
MetaKey: "user",
|
|
EnvKey: "ACMEDNS_USERNAME",
|
|
IsRequired: true,
|
|
},
|
|
{
|
|
Name: "Password",
|
|
Type: "password",
|
|
MetaKey: "password",
|
|
EnvKey: "ACMEDNS_PASSWORD",
|
|
IsRequired: true,
|
|
IsSecret: true,
|
|
},
|
|
},
|
|
}
|
|
}
|