Refactor acme.sh dns providers
- updated chakra and typescript - added locales for dns provider configs
This commit is contained in:
@ -1,56 +1,32 @@
|
||||
package dnsproviders
|
||||
|
||||
const cyonChSchema = `
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"user",
|
||||
"password"
|
||||
],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"user": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"password": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"otp_secret": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
`
|
||||
|
||||
func getDNSCyon() Provider {
|
||||
return Provider{
|
||||
AcmeshName: "dns_cyon",
|
||||
Schema: cyonChSchema,
|
||||
Fields: []providerField{
|
||||
{
|
||||
Name: "User",
|
||||
Type: "text",
|
||||
MetaKey: "user",
|
||||
EnvKey: "CY_Username",
|
||||
IsRequired: true,
|
||||
Title: "dns_cyon",
|
||||
Type: "object",
|
||||
AdditionalProperties: false,
|
||||
Required: []string{
|
||||
"CY_Username",
|
||||
"CY_Password",
|
||||
"CY_OTP_Secret",
|
||||
},
|
||||
Properties: map[string]providerField{
|
||||
"CY_Username": {
|
||||
Title: "user",
|
||||
Type: "string",
|
||||
MinLength: 1,
|
||||
},
|
||||
{
|
||||
Name: "Password",
|
||||
Type: "password",
|
||||
MetaKey: "password",
|
||||
EnvKey: "CY_Password",
|
||||
IsRequired: true,
|
||||
IsSecret: true,
|
||||
"CY_Password": {
|
||||
Title: "password",
|
||||
Type: "string",
|
||||
MinLength: 1,
|
||||
IsSecret: true,
|
||||
},
|
||||
{
|
||||
Name: "OTP Secret",
|
||||
Type: "password",
|
||||
MetaKey: "otp_secret",
|
||||
EnvKey: "CY_OTP_Secret",
|
||||
IsSecret: true,
|
||||
"CY_OTP_Secret": {
|
||||
Title: "otp-secret",
|
||||
Type: "string",
|
||||
MinLength: 1,
|
||||
IsSecret: true,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user