Refactor acme.sh dns providers
- updated chakra and typescript - added locales for dns provider configs
This commit is contained in:
@ -1,45 +1,25 @@
|
||||
package dnsproviders
|
||||
|
||||
const luaDNSSchema = `
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"api_key",
|
||||
"email"
|
||||
],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"api_key": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"email": {
|
||||
"type": "string",
|
||||
"minLength": 5
|
||||
}
|
||||
}
|
||||
}
|
||||
`
|
||||
|
||||
func getDNSLua() Provider {
|
||||
return Provider{
|
||||
AcmeshName: "dns_lua",
|
||||
Schema: luaDNSSchema,
|
||||
Fields: []providerField{
|
||||
{
|
||||
Name: "Key",
|
||||
Type: "text",
|
||||
MetaKey: "api_key",
|
||||
EnvKey: "LUA_Key",
|
||||
IsRequired: true,
|
||||
IsSecret: true,
|
||||
Title: "dns_lua",
|
||||
Type: "object",
|
||||
AdditionalProperties: false,
|
||||
Required: []string{
|
||||
"LUA_Key",
|
||||
"LUA_Email",
|
||||
},
|
||||
Properties: map[string]providerField{
|
||||
"LUA_Key": {
|
||||
Title: "key",
|
||||
Type: "string",
|
||||
MinLength: 1,
|
||||
IsSecret: true,
|
||||
},
|
||||
{
|
||||
Name: "Email",
|
||||
Type: "text",
|
||||
MetaKey: "email",
|
||||
EnvKey: "LUA_Email",
|
||||
IsRequired: true,
|
||||
"LUA_Email": {
|
||||
Title: "email",
|
||||
Type: "string",
|
||||
MinLength: 5,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user