mirror of
https://github.com/certd/certd.git
synced 2026-04-14 04:20:52 +08:00
chore: metadata refresh
This commit is contained in:
@@ -1,19 +1,38 @@
|
||||
name: demo
|
||||
title: 授权插件示例
|
||||
icon: clarity:plugin-line
|
||||
desc: ''
|
||||
desc: 这是一个示例授权插件,用于演示如何实现一个授权插件
|
||||
input:
|
||||
apiType:
|
||||
title: 授权方式
|
||||
value: apiKey
|
||||
component:
|
||||
name: a-select
|
||||
vModel: value
|
||||
options:
|
||||
- label: API密钥(推荐)
|
||||
value: apiKey
|
||||
- label: 账号密码
|
||||
value: account
|
||||
placeholder: demoKeyId
|
||||
required: true
|
||||
demoKeyId:
|
||||
title: 密钥Id
|
||||
component:
|
||||
name: a-input
|
||||
allowClear: true
|
||||
placeholder: demoKeyId
|
||||
required: true
|
||||
demoKeySecret:
|
||||
title: 密钥串
|
||||
component:
|
||||
placeholder: demoKeySecret
|
||||
title: 密钥
|
||||
required: true
|
||||
encrypt: true
|
||||
testRequest:
|
||||
title: 测试
|
||||
component:
|
||||
name: api-test
|
||||
action: TestRequest
|
||||
helper: 点击测试接口是否正常
|
||||
pluginType: access
|
||||
type: builtIn
|
||||
scriptFilePath: /plugins/plugin-demo/access.js
|
||||
|
||||
@@ -14,17 +14,18 @@ input:
|
||||
domains:
|
||||
title: 证书域名
|
||||
component:
|
||||
name: a-select
|
||||
name: domain-selector
|
||||
vModel: value
|
||||
mode: tags
|
||||
open: false
|
||||
placeholder: foo.com / *.foo.com / *.bar.com
|
||||
placeholder: 请输入证书域名,比如:foo.com , *.foo.com , *.sub.foo.com , *.bar.com
|
||||
tokenSeparators:
|
||||
- ','
|
||||
- ' '
|
||||
- ,
|
||||
- 、
|
||||
- '|'
|
||||
search: true
|
||||
pager: true
|
||||
rules:
|
||||
- type: domains
|
||||
required: true
|
||||
@@ -424,7 +425,6 @@ input:
|
||||
helper: 兼容Windows Server各个版本
|
||||
renewDays:
|
||||
title: 更新天数
|
||||
value: 18
|
||||
component:
|
||||
name: a-input-number
|
||||
vModel: value
|
||||
|
||||
@@ -11,17 +11,18 @@ input:
|
||||
domains:
|
||||
title: 证书域名
|
||||
component:
|
||||
name: a-select
|
||||
name: domain-selector
|
||||
vModel: value
|
||||
mode: tags
|
||||
open: false
|
||||
placeholder: foo.com / *.foo.com / *.bar.com
|
||||
placeholder: 请输入证书域名,比如:foo.com , *.foo.com , *.sub.foo.com , *.bar.com
|
||||
tokenSeparators:
|
||||
- ','
|
||||
- ' '
|
||||
- ,
|
||||
- 、
|
||||
- '|'
|
||||
search: true
|
||||
pager: true
|
||||
rules:
|
||||
- type: domains
|
||||
required: true
|
||||
@@ -109,7 +110,6 @@ input:
|
||||
helper: 兼容Windows Server各个版本
|
||||
renewDays:
|
||||
title: 更新天数
|
||||
value: 18
|
||||
component:
|
||||
name: a-input-number
|
||||
vModel: value
|
||||
|
||||
@@ -14,17 +14,18 @@ input:
|
||||
domains:
|
||||
title: 证书域名
|
||||
component:
|
||||
name: a-select
|
||||
name: domain-selector
|
||||
vModel: value
|
||||
mode: tags
|
||||
open: false
|
||||
placeholder: foo.com / *.foo.com / *.bar.com
|
||||
placeholder: 请输入证书域名,比如:foo.com , *.foo.com , *.sub.foo.com , *.bar.com
|
||||
tokenSeparators:
|
||||
- ','
|
||||
- ' '
|
||||
- ,
|
||||
- 、
|
||||
- '|'
|
||||
search: true
|
||||
pager: true
|
||||
rules:
|
||||
- type: domains
|
||||
required: true
|
||||
@@ -145,7 +146,6 @@ input:
|
||||
helper: 兼容Windows Server各个版本
|
||||
renewDays:
|
||||
title: 更新天数
|
||||
value: 18
|
||||
component:
|
||||
name: a-input-number
|
||||
vModel: value
|
||||
|
||||
@@ -76,17 +76,18 @@ input:
|
||||
domains:
|
||||
title: 证书域名
|
||||
component:
|
||||
name: a-select
|
||||
name: domain-selector
|
||||
vModel: value
|
||||
mode: tags
|
||||
open: false
|
||||
placeholder: foo.com / *.foo.com / *.bar.com
|
||||
placeholder: 请输入证书域名,比如:foo.com , *.foo.com , *.sub.foo.com , *.bar.com
|
||||
tokenSeparators:
|
||||
- ','
|
||||
- ' '
|
||||
- ,
|
||||
- 、
|
||||
- '|'
|
||||
search: true
|
||||
pager: true
|
||||
rules:
|
||||
- type: domains
|
||||
required: true
|
||||
|
||||
101
packages/ui/certd-server/metadata/deploy_UCloudDeployToULB.yaml
Normal file
101
packages/ui/certd-server/metadata/deploy_UCloudDeployToULB.yaml
Normal file
@@ -0,0 +1,101 @@
|
||||
showRunStrategy: false
|
||||
default:
|
||||
strategy:
|
||||
runStrategy: 1
|
||||
name: UCloudDeployToULB
|
||||
title: UCloud-部署到负载均衡
|
||||
desc: 将证书部署到UCloud负载均衡(ULB/ALB/CLB)
|
||||
icon: svg:icon-ucloud
|
||||
group: ucloud
|
||||
needPlus: false
|
||||
input:
|
||||
cert:
|
||||
title: 域名证书
|
||||
helper: 请选择前置任务输出的域名证书
|
||||
component:
|
||||
name: output-selector
|
||||
from:
|
||||
- ':cert:'
|
||||
order: 0
|
||||
certDomains:
|
||||
title: 当前证书域名
|
||||
component:
|
||||
name: cert-domains-getter
|
||||
mergeScript: |2-
|
||||
|
||||
return {
|
||||
component:{
|
||||
inputKey: ctx.compute(({form})=>{
|
||||
return form.cert
|
||||
}),
|
||||
}
|
||||
}
|
||||
|
||||
template: false
|
||||
required: false
|
||||
order: 0
|
||||
accessId:
|
||||
title: UCloud授权
|
||||
component:
|
||||
name: access-selector
|
||||
type: ucloud
|
||||
required: true
|
||||
order: 0
|
||||
region:
|
||||
title: 地域
|
||||
component:
|
||||
name: remote-select
|
||||
vModel: value
|
||||
type: plugin
|
||||
action: onGetRegionList
|
||||
search: false
|
||||
pager: false
|
||||
watches:
|
||||
- certDomains
|
||||
- accessId
|
||||
required: true
|
||||
mergeScript: |2-
|
||||
|
||||
return {
|
||||
component:{
|
||||
form: ctx.compute(({form})=>{
|
||||
return form
|
||||
})
|
||||
},
|
||||
}
|
||||
|
||||
helper: 选择UCloud地域
|
||||
order: 0
|
||||
certNameList:
|
||||
title: 证书列表
|
||||
component:
|
||||
name: remote-select
|
||||
vModel: value
|
||||
mode: tags
|
||||
type: plugin
|
||||
action: onGetCertList
|
||||
search: false
|
||||
pager: false
|
||||
watches:
|
||||
- certDomains
|
||||
- accessId
|
||||
required: true
|
||||
mergeScript: |2-
|
||||
|
||||
return {
|
||||
component:{
|
||||
form: ctx.compute(({form})=>{
|
||||
return form
|
||||
})
|
||||
},
|
||||
}
|
||||
|
||||
helper: |-
|
||||
选择要替换的证书名称
|
||||
如果证书不存在,可以手动输入证书名称(运行一次后将会自动创建,您可以在ULB控制台进行使用)
|
||||
请确保证书名称不要重复,如果重复,只会更新创建时间最近的那一条
|
||||
order: 0
|
||||
output: {}
|
||||
pluginType: deploy
|
||||
type: builtIn
|
||||
scriptFilePath: /plugins/plugin-ucloud/plugins/plugin-deploy-to-ulb.js
|
||||
@@ -0,0 +1,99 @@
|
||||
showRunStrategy: false
|
||||
default:
|
||||
strategy:
|
||||
runStrategy: 1
|
||||
name: UCloudDeployToUS3
|
||||
title: UCloud-部署到对象存储(US3)
|
||||
desc: 将证书部署到UCloud对象存储(US3)
|
||||
icon: svg:icon-ucloud
|
||||
group: ucloud
|
||||
needPlus: false
|
||||
input:
|
||||
cert:
|
||||
title: 域名证书
|
||||
helper: 请选择前置任务输出的域名证书
|
||||
component:
|
||||
name: output-selector
|
||||
from:
|
||||
- ':cert:'
|
||||
order: 0
|
||||
certDomains:
|
||||
title: 当前证书域名
|
||||
component:
|
||||
name: cert-domains-getter
|
||||
mergeScript: |2-
|
||||
|
||||
return {
|
||||
component:{
|
||||
inputKey: ctx.compute(({form})=>{
|
||||
return form.cert
|
||||
}),
|
||||
}
|
||||
}
|
||||
|
||||
template: false
|
||||
required: false
|
||||
order: 0
|
||||
accessId:
|
||||
title: UCloud授权
|
||||
component:
|
||||
name: access-selector
|
||||
type: ucloud
|
||||
required: true
|
||||
order: 0
|
||||
bucket:
|
||||
title: 存储桶
|
||||
component:
|
||||
name: remote-select
|
||||
vModel: value
|
||||
mode: tags
|
||||
type: plugin
|
||||
action: onGetBucketList
|
||||
search: false
|
||||
pager: false
|
||||
watches:
|
||||
- certDomains
|
||||
- accessId
|
||||
required: true
|
||||
mergeScript: |2-
|
||||
|
||||
return {
|
||||
component:{
|
||||
form: ctx.compute(({form})=>{
|
||||
return form
|
||||
})
|
||||
},
|
||||
}
|
||||
|
||||
helper: 要更新的UCloud存储桶
|
||||
order: 0
|
||||
domainList:
|
||||
title: 域名列表
|
||||
component:
|
||||
name: remote-select
|
||||
vModel: value
|
||||
mode: tags
|
||||
type: plugin
|
||||
action: onGetDomainList
|
||||
search: false
|
||||
pager: false
|
||||
watches:
|
||||
- certDomains
|
||||
- accessId
|
||||
required: true
|
||||
mergeScript: |2-
|
||||
|
||||
return {
|
||||
component:{
|
||||
form: ctx.compute(({form})=>{
|
||||
return form
|
||||
})
|
||||
},
|
||||
}
|
||||
|
||||
helper: 要更新的UCloud域名列表
|
||||
order: 0
|
||||
output: {}
|
||||
pluginType: deploy
|
||||
type: builtIn
|
||||
scriptFilePath: /plugins/plugin-ucloud/plugins/plugin-deploy-to-us3.js
|
||||
Reference in New Issue
Block a user