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 inwxSchema = `
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"user",
|
||||
"password"
|
||||
],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"user": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"password": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
`
|
||||
|
||||
func getDNSInwx() Provider {
|
||||
return Provider{
|
||||
AcmeshName: "dns_inwx",
|
||||
Schema: inwxSchema,
|
||||
Fields: []providerField{
|
||||
{
|
||||
Name: "User",
|
||||
Type: "text",
|
||||
MetaKey: "user",
|
||||
EnvKey: "INWX_User",
|
||||
IsRequired: true,
|
||||
Title: "dns_inwx",
|
||||
Type: "object",
|
||||
AdditionalProperties: false,
|
||||
Required: []string{
|
||||
"INWX_User",
|
||||
"INWX_Password",
|
||||
},
|
||||
Properties: map[string]providerField{
|
||||
"INWX_User": {
|
||||
Title: "user",
|
||||
Type: "string",
|
||||
MinLength: 1,
|
||||
},
|
||||
{
|
||||
Name: "Password",
|
||||
Type: "password",
|
||||
MetaKey: "password",
|
||||
EnvKey: "INWX_Password",
|
||||
IsRequired: true,
|
||||
IsSecret: true,
|
||||
"INWX_Password": {
|
||||
Title: "password",
|
||||
Type: "string",
|
||||
MinLength: 1,
|
||||
IsSecret: true,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user