dns_da
This commit is contained in:
42
backend/internal/dnsproviders/dns_da.go
Normal file
42
backend/internal/dnsproviders/dns_da.go
Normal file
@ -0,0 +1,42 @@
|
||||
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",
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user