Refactor acme.sh dns providers
- updated chakra and typescript - added locales for dns provider configs
This commit is contained in:
@ -1,69 +1,37 @@
|
||||
package dnsproviders
|
||||
|
||||
const conohaSchema = `
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"subscription_id",
|
||||
"tenant_id",
|
||||
"app_id",
|
||||
"client_secret"
|
||||
],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"api_url": {
|
||||
"type": "string",
|
||||
"minLength": 4
|
||||
},
|
||||
"user": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"pass": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"tenant_id": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
`
|
||||
|
||||
func getDNSConoha() Provider {
|
||||
return Provider{
|
||||
AcmeshName: "dns_conoha",
|
||||
Schema: conohaSchema,
|
||||
Fields: []providerField{
|
||||
{
|
||||
Name: "API URL",
|
||||
Type: "text",
|
||||
MetaKey: "api_url",
|
||||
EnvKey: "CONOHA_IdentityServiceApi",
|
||||
IsRequired: true,
|
||||
Title: "dns_conoha",
|
||||
Type: "object",
|
||||
AdditionalProperties: false,
|
||||
Required: []string{
|
||||
"CONOHA_IdentityServiceApi",
|
||||
"CONOHA_Username",
|
||||
"CONOHA_Password",
|
||||
"CONOHA_TenantId",
|
||||
},
|
||||
Properties: map[string]providerField{
|
||||
"CONOHA_IdentityServiceApi": {
|
||||
Title: "api-url",
|
||||
Type: "string",
|
||||
MinLength: 4,
|
||||
},
|
||||
{
|
||||
Name: "Username",
|
||||
Type: "text",
|
||||
MetaKey: "user",
|
||||
EnvKey: "CONOHA_Username",
|
||||
IsRequired: true,
|
||||
"CONOHA_Username": {
|
||||
Title: "username",
|
||||
Type: "string",
|
||||
MinLength: 1,
|
||||
},
|
||||
{
|
||||
Name: "Password",
|
||||
Type: "password",
|
||||
MetaKey: "password",
|
||||
EnvKey: "CONOHA_Password",
|
||||
IsRequired: true,
|
||||
IsSecret: true,
|
||||
"CONOHA_Password": {
|
||||
Title: "password",
|
||||
Type: "string",
|
||||
MinLength: 1,
|
||||
IsSecret: true,
|
||||
},
|
||||
{
|
||||
Name: "Tenant ID",
|
||||
Type: "text",
|
||||
MetaKey: "tenant_id",
|
||||
EnvKey: "CONOHA_TenantId",
|
||||
IsRequired: true,
|
||||
"CONOHA_TenantId": {
|
||||
Title: "tenant-id",
|
||||
Type: "string",
|
||||
MinLength: 1,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user