Refactor acme.sh dns providers

- updated chakra and typescript
- added locales for dns provider configs
This commit is contained in:
Jamie Curnow
2023-01-12 16:25:43 +10:00
parent 1d5d3ecd7a
commit 5d3bc0fabd
57 changed files with 2204 additions and 2161 deletions

View File

@ -1,57 +1,31 @@
package dnsproviders
const dynSchema = `
{
"type": "object",
"required": [
"customer",
"username",
"password"
],
"additionalProperties": false,
"properties": {
"customer": {
"type": "string",
"minLength": 1
},
"username": {
"type": "string",
"minLength": 1
},
"password": {
"type": "string",
"minLength": 1
}
}
}
`
func getDNSDyn() Provider {
return Provider{
AcmeshName: "dns_dyn",
Schema: dynSchema,
Fields: []providerField{
{
Name: "Customer",
Type: "text",
MetaKey: "customer",
EnvKey: "DYN_Customer",
IsRequired: true,
Title: "dns_dyn",
Type: "object",
AdditionalProperties: false,
Required: []string{
"DYN_Customer",
"DYN_Username",
"DYN_Password",
},
Properties: map[string]providerField{
"DYN_Customer": {
Title: "customer",
Type: "string",
MinLength: 1,
},
{
Name: "Username",
Type: "text",
MetaKey: "username",
EnvKey: "DYN_Username",
IsRequired: true,
"DYN_Username": {
Title: "username",
Type: "string",
MinLength: 1,
},
{
Name: "Password",
Type: "password",
MetaKey: "password",
EnvKey: "DYN_Password",
IsRequired: true,
IsSecret: true,
"DYN_Password": {
Title: "password",
Type: "string",
MinLength: 1,
IsSecret: true,
},
},
}