Refactor acme.sh dns providers
- updated chakra and typescript - added locales for dns provider configs
This commit is contained in:
@ -1,55 +1,29 @@
|
||||
package dnsproviders
|
||||
|
||||
const route53Schema = `
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"access_key_id",
|
||||
"access_key"
|
||||
],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"access_key_id": {
|
||||
"type": "string",
|
||||
"minLength": 10
|
||||
},
|
||||
"access_key": {
|
||||
"type": "string",
|
||||
"minLength": 10
|
||||
},
|
||||
"slow_rate": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
`
|
||||
|
||||
func getDNSAws() Provider {
|
||||
return Provider{
|
||||
AcmeshName: "dns_aws",
|
||||
Schema: route53Schema,
|
||||
Fields: []providerField{
|
||||
{
|
||||
Name: "Access Key ID",
|
||||
Type: "text",
|
||||
MetaKey: "access_key_id",
|
||||
EnvKey: "AWS_ACCESS_KEY_ID",
|
||||
IsRequired: true,
|
||||
Title: "dns_aws",
|
||||
Type: "object",
|
||||
AdditionalProperties: false,
|
||||
Required: []string{
|
||||
"AWS_ACCESS_KEY_ID",
|
||||
"AWS_SECRET_ACCESS_KEY",
|
||||
},
|
||||
Properties: map[string]providerField{
|
||||
"AWS_ACCESS_KEY_ID": {
|
||||
Title: "access-key-id",
|
||||
Type: "string",
|
||||
MinLength: 10,
|
||||
},
|
||||
{
|
||||
Name: "Secret Access Key",
|
||||
Type: "password",
|
||||
MetaKey: "access_key",
|
||||
EnvKey: "AWS_SECRET_ACCESS_KEY",
|
||||
IsRequired: true,
|
||||
IsSecret: true,
|
||||
"AWS_SECRET_ACCESS_KEY": {
|
||||
Title: "secret-access-key",
|
||||
Type: "string",
|
||||
MinLength: 10,
|
||||
IsSecret: true,
|
||||
},
|
||||
{
|
||||
Name: "Slow Rate",
|
||||
Type: "number",
|
||||
MetaKey: "slow_rate",
|
||||
EnvKey: "AWS_DNS_SLOWRATE",
|
||||
"AWS_DNS_SLOWRATE": {
|
||||
Title: "slow-rate",
|
||||
Type: "integer",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user