mirror of
https://github.com/xiaoxinpro/nginx-proxy-manager-zh.git
synced 2025-01-24 05:38:15 -05:00
43 lines
634 B
Go
43 lines
634 B
Go
|
package dnsproviders
|
||
|
|
||
|
const daSchema = `
|
||
|
{
|
||
|
"type": "object",
|
||
|
"required": [
|
||
|
"api_url"
|
||
|
],
|
||
|
"additionalProperties": false,
|
||
|
"properties": {
|
||
|
"api_url": {
|
||
|
"type": "string",
|
||
|
"minLength": 4
|
||
|
},
|
||
|
"insecure": {
|
||
|
"type": "boolean"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
`
|
||
|
|
||
|
func getDNSDa() Provider {
|
||
|
return Provider{
|
||
|
AcmeshName: "dns_da",
|
||
|
Schema: daSchema,
|
||
|
Fields: []providerField{
|
||
|
{
|
||
|
Name: "API URL",
|
||
|
Type: "text",
|
||
|
MetaKey: "api_url",
|
||
|
EnvKey: "DA_Api",
|
||
|
IsRequired: true,
|
||
|
},
|
||
|
{
|
||
|
Name: "Insecure",
|
||
|
Type: "boolean",
|
||
|
MetaKey: "insecure",
|
||
|
EnvKey: "DA_Api_Insecure",
|
||
|
},
|
||
|
},
|
||
|
}
|
||
|
}
|