chore: plugin元数据换成yaml格式

This commit is contained in:
xiaojunnuo
2025-04-15 00:16:57 +08:00
parent cfd3b66be9
commit 91ffb0820a
129 changed files with 7037 additions and 3 deletions

View File

@@ -0,0 +1,143 @@
showRunStrategy: false
default:
strategy:
runStrategy: 1
name: AliyunDeployCertToALB
title: 阿里云-部署至ALB应用负载均衡
icon: svg:icon-aliyun
group: aliyun
desc: ALB,更新监听器的默认证书
needPlus: false
input:
cert:
title: 域名证书
helper: |-
请选择证书申请任务输出的域名证书
或者选择前置任务“上传证书到阿里云”任务的证书ID可以减少上传到阿里云的证书数量
component:
name: output-selector
from:
- CertApply
- CertApplyLego
- CertApplyUpload
- uploadCertToAliyun
required: true
order: 0
certDomains:
title: 当前证书域名
component:
name: cert-domains-getter
mergeScript: |2-
return {
component:{
inputKey: ctx.compute(({form})=>{
return form.cert
}),
}
}
required: false
order: 0
accessId:
title: Access授权
helper: 阿里云授权AccessKeyId、AccessKeySecret
component:
name: access-selector
type: aliyun
required: true
order: 0
regionId:
title: ALB所在地区
component:
name: remote-select
vModel: value
type: plugin
typeName: AliyunDeployCertToALB
action: onGetRegionList
watches:
- certDomains
- accessId
- accessId
required: true
mergeScript: |2-
return {
component:{
form: ctx.compute(({form})=>{
return form
})
},
}
helper: 请选择
order: 0
loadBalancers:
title: 负载均衡列表
component:
name: remote-select
vModel: value
mode: tags
type: plugin
typeName: AliyunDeployCertToALB
action: onGetLoadBalanceList
watches:
- certDomains
- accessId
- regionId
required: true
mergeScript: |2-
return {
component:{
form: ctx.compute(({form})=>{
return form
})
},
}
helper: 要部署证书的负载均衡ID
order: 0
listeners:
title: 监听器列表
component:
name: remote-select
vModel: value
mode: tags
type: plugin
typeName: AliyunDeployCertToALB
action: onGetListenerList
watches:
- certDomains
- accessId
- loadBalancers
required: true
mergeScript: |2-
return {
component:{
form: ctx.compute(({form})=>{
return form
})
},
}
helper: 要部署证书的监听器列表
order: 0
casEndpoint:
title: 证书接入点
helper: 不会选就保持默认即可
value: cas.aliyuncs.com
component:
name: a-select
options:
- value: cas.aliyuncs.com
label: 中国大陆
- value: cas.ap-southeast-1.aliyuncs.com
label: 新加坡
- value: cas.eu-central-1.aliyuncs.com
label: 德国(法兰克福)
required: true
order: 0
output: {}
pluginType: deploy

View File

@@ -0,0 +1,107 @@
showRunStrategy: false
default:
strategy:
runStrategy: 1
name: DeployCertToAliyunCDN
title: 阿里云-部署证书至CDN
icon: svg:icon-aliyun
group: aliyun
desc: 自动部署域名证书至阿里云CDN
input:
endpoint:
title: 证书服务接入点
helper: 不会选就按默认
value: cas.aliyuncs.com
component:
name: a-select
options:
- value: cas.aliyuncs.com
label: 中国大陆
- value: cas.ap-southeast-1.aliyuncs.com
label: 新加坡
- value: cas.eu-central-1.aliyuncs.com
label: 德国(法兰克福)
required: true
order: 0
cert:
title: 域名证书
helper: 请选择前置任务输出的域名证书
component:
name: output-selector
from:
- CertApply
- CertApplyLego
- CertApplyUpload
- uploadCertToAliyun
required: true
order: 0
certDomains:
title: 当前证书域名
component:
name: cert-domains-getter
mergeScript: |2-
return {
component:{
inputKey: ctx.compute(({form})=>{
return form.cert
}),
}
}
required: false
order: 0
accessId:
title: Access授权
helper: 阿里云授权AccessKeyId、AccessKeySecret
component:
name: access-selector
type: aliyun
required: true
order: 0
domainName:
title: CDN加速域名
component:
name: remote-select
vModel: value
mode: tags
type: plugin
typeName: DeployCertToAliyunCDN
action: onGetDomainList
watches:
- certDomains
- accessId
- certDomains
- accessId
required: true
mergeScript: |2-
return {
component:{
form: ctx.compute(({form})=>{
return form
})
},
}
helper: 你在阿里云上配置的CDN加速域名比如:certd.docmirror.cn
order: 0
certRegion:
title: 证书所在地域
helper: cn-hangzhou和ap-southeast-1默认cn-hangzhou。国际站用户建议使用ap-southeast-1。
value: cn-hangzhou
component:
name: a-select
options:
- value: cn-hangzhou
label: 中国大陆
- value: ap-southeast-1
label: 新加坡
required: true
order: 0
certName:
title: 证书名称
helper: 上传后将以此名称作为前缀备注
order: 0
output: {}
pluginType: deploy

View File

@@ -0,0 +1,57 @@
showRunStrategy: false
default:
strategy:
runStrategy: 1
name: DeployCertToAliyunDCDN
title: 阿里云-部署证书至DCDN
icon: svg:icon-aliyun
group: aliyun
desc: 依赖证书申请前置任务自动部署域名证书至阿里云DCDN
input:
cert:
title: 域名证书
helper: 请选择前置任务输出的域名证书
component:
name: output-selector
from:
- CertApply
- CertApplyLego
- CertApplyUpload
- uploadCertToAliyun
required: true
order: 0
certDomains:
title: 当前证书域名
component:
name: cert-domains-getter
mergeScript: |2-
return {
component:{
inputKey: ctx.compute(({form})=>{
return form.cert
}),
}
}
required: false
order: 0
accessId:
title: Access授权
helper: 阿里云授权AccessKeyId、AccessKeySecret
component:
name: access-selector
type: aliyun
required: true
order: 0
domainName:
title: DCDN加速域名
helper: 你在阿里云上配置的CDN加速域名比如:certd.docmirror.cn
required: true
order: 0
certName:
title: 证书名称
helper: 上传后将以此名称作为前缀备注
order: 0
output: {}
pluginType: deploy

View File

@@ -0,0 +1,147 @@
showRunStrategy: false
default:
strategy:
runStrategy: 1
name: AliyunDeployCertToFC
title: 阿里云-部署至阿里云FC(3.0)
icon: svg:icon-aliyun
group: aliyun
desc: 部署证书到阿里云函数计算FC3.0,【注意】证书的加密算法必须选择【pkcs1旧版】
needPlus: true
input:
cert:
title: 域名证书
helper: 请选择证书申请任务输出的域名证书
component:
name: output-selector
from:
- CertApply
- CertApplyLego
- CertApplyUpload
required: true
order: 0
certDomains:
title: 当前证书域名
component:
name: cert-domains-getter
mergeScript: |2-
return {
component:{
inputKey: ctx.compute(({form})=>{
return form.cert
}),
}
}
required: false
order: 0
regionId:
title: FC大区
value: cn-hangzhou
component:
name: a-auto-complete
vModel: value
options:
- value: cn-qingdao
label: 华北1青岛
- value: cn-beijing
label: 华北2北京
- value: cn-zhangjiakou
label: 华北 3张家口
- value: cn-huhehaote
label: 华北5呼和浩特
- value: cn-hangzhou
label: 华东1杭州
- value: cn-shanghai
label: 华东2上海
- value: cn-shenzhen
label: 华南1深圳
- value: ap-southeast-2
label: 澳大利亚(悉尼)
- value: eu-central-1
label: 德国(法兰克福)
- value: ap-southeast-3
label: 马来西亚(吉隆坡)
- value: us-east-1
label: 美国(弗吉尼亚)
- value: us-west-1
label: 美国(硅谷)
- value: ap-northeast-1
label: 日本(东京)
- value: ap-southeast-7
label: 泰国(曼谷)
- value: cn-chengdu
label: 西南1成都
- value: ap-southeast-1
label: 新加坡
- value: ap-south-1
label: 印度(孟买)
- value: ap-southeast-5
label: 印度尼西亚(雅加达)
- value: eu-west-1
label: 英国(伦敦)
- value: cn-hongkong
label: 中国香港
required: true
order: 0
accountId:
title: 阿里云账号id
helper: 阿里云主账号ID右上角头像下方获取
component:
name: a-input
vModel: value
required: true
order: 0
accessId:
title: Access授权
helper: 阿里云授权AccessKeyId、AccessKeySecret
component:
name: access-selector
type: aliyun
required: true
order: 0
fcDomains:
title: FC域名
component:
name: remote-select
vModel: value
mode: tags
type: plugin
typeName: AliyunDeployCertToFC
action: onGetDomainList
watches:
- certDomains
- accessId
- accessId
- regionId
required: true
mergeScript: |2-
return {
component:{
form: ctx.compute(({form})=>{
return form
})
},
}
helper: |-
请选择要部署证书的域名
【注意】证书的加密算法必须选择【pkcs1旧版】否则会报'private key' has to be in PEM format错误
order: 0
protocol:
title: 域名支持的协议类型
component:
name: a-select
value: ''
options:
- value: ''
label: 保持原样适用于原来已经开启了HTTPS
- value: HTTPS
label: 仅HTTPS
- value: HTTP,HTTPS
label: HTTP与HTTPS同时支持
order: 0
output: {}
pluginType: deploy

View File

@@ -0,0 +1,143 @@
showRunStrategy: false
default:
strategy:
runStrategy: 1
name: AliyunDeployCertToNLB
title: 阿里云-部署至NLB网络负载均衡
icon: svg:icon-aliyun
group: aliyun
desc: NLB,网络负载均衡,更新监听器的默认证书
needPlus: false
input:
cert:
title: 域名证书
helper: |-
请选择证书申请任务输出的域名证书
或者选择前置任务“上传证书到阿里云”任务的证书ID可以减少上传到阿里云的证书数量
component:
name: output-selector
from:
- CertApply
- CertApplyLego
- CertApplyUpload
- uploadCertToAliyun
required: true
order: 0
certDomains:
title: 当前证书域名
component:
name: cert-domains-getter
mergeScript: |2-
return {
component:{
inputKey: ctx.compute(({form})=>{
return form.cert
}),
}
}
required: false
order: 0
accessId:
title: Access授权
helper: 阿里云授权AccessKeyId、AccessKeySecret
component:
name: access-selector
type: aliyun
required: true
order: 0
regionId:
title: NLB所在地区
component:
name: remote-select
vModel: value
type: plugin
typeName: AliyunDeployCertToNLB
action: onGetRegionList
watches:
- certDomains
- accessId
- accessId
required: true
mergeScript: |2-
return {
component:{
form: ctx.compute(({form})=>{
return form
})
},
}
helper: 请选择
order: 0
loadBalancers:
title: 负载均衡列表
component:
name: remote-select
vModel: value
mode: tags
type: plugin
typeName: AliyunDeployCertToNLB
action: onGetLoadBalanceList
watches:
- certDomains
- accessId
- regionId
required: true
mergeScript: |2-
return {
component:{
form: ctx.compute(({form})=>{
return form
})
},
}
helper: 要部署证书的负载均衡ID
order: 0
listeners:
title: 监听器列表
component:
name: remote-select
vModel: value
mode: tags
type: plugin
typeName: AliyunDeployCertToNLB
action: onGetListenerList
watches:
- certDomains
- accessId
- loadBalancers
required: true
mergeScript: |2-
return {
component:{
form: ctx.compute(({form})=>{
return form
})
},
}
helper: 要部署证书的监听器列表
order: 0
casEndpoint:
title: 证书接入点
helper: 不会选就保持默认即可
value: cas.aliyuncs.com
component:
name: a-select
options:
- value: cas.aliyuncs.com
label: 中国大陆
- value: cas.ap-southeast-1.aliyuncs.com
label: 新加坡
- value: cas.eu-central-1.aliyuncs.com
label: 德国(法兰克福)
required: true
order: 0
output: {}
pluginType: deploy

View File

@@ -0,0 +1,111 @@
showRunStrategy: false
default:
strategy:
runStrategy: 1
name: DeployCertToAliyunOSS
title: 阿里云-部署证书至OSS
icon: svg:icon-aliyun
group: aliyun
desc: 自动部署域名证书至阿里云OSS
input:
region:
title: 大区
component:
name: a-auto-complete
vModel: value
options:
- value: oss-cn-hangzhou
label: 华东1杭州
- value: oss-cn-shanghai
label: 华东2上海
- value: oss-cn-nanjing
label: 华东5南京-本地地域)
- value: oss-cn-fuzhou
label: 华东6福州-本地地域)
- value: oss-cn-wuhan-lr
label: 华中1武汉-本地地域)
- value: oss-cn-qingdao
label: 华北1青岛
- value: oss-cn-beijing
label: 华北2北京
- value: oss-cn-zhangjiakou
label: 华北 3张家口
- value: oss-cn-huhehaote
label: 华北5呼和浩特
- value: oss-cn-wulanchabu
label: 华北6乌兰察布
- value: oss-cn-shenzhen
label: 华南1深圳
- value: oss-cn-heyuan
label: 华南2河源
- value: oss-cn-guangzhou
label: 华南3广州
- value: oss-cn-chengdu
label: 西南1成都
- value: oss-cn-hongkong
label: 中国香港
- value: oss-us-west-1
label: 美国(硅谷)①
- value: oss-us-east-1
label: 美国(弗吉尼亚)①
- value: oss-ap-northeast-1
label: 日本(东京)①
- value: oss-ap-northeast-2
label: 韩国(首尔)
- value: oss-ap-southeast-1
label: 新加坡①
- value: oss-ap-southeast-2
label: 澳大利亚(悉尼)①
- value: oss-ap-southeast-3
label: 马来西亚(吉隆坡)①
- value: oss-ap-southeast-5
label: 印度尼西亚(雅加达)①
- value: oss-ap-southeast-6
label: 菲律宾(马尼拉)
- value: oss-ap-southeast-7
label: 泰国(曼谷)
- value: oss-eu-central-1
label: 德国(法兰克福)①
- value: oss-eu-west-1
label: 英国(伦敦)
- value: oss-me-east-1
label: 阿联酋(迪拜)①
- value: oss-rg-china-mainland
label: 无地域属性(中国内地)
required: true
order: 0
bucket:
title: Bucket
helper: 存储桶名称
required: true
order: 0
domainName:
title: 绑定的域名
helper: 你在阿里云OSS上绑定的域名比如:certd.docmirror.cn
required: true
order: 0
certName:
title: 证书名称
helper: 上传后将以此名称作为前缀备注
order: 0
cert:
title: 域名证书
helper: 请选择前置任务输出的域名证书
component:
name: output-selector
from:
- CertApply
- CertApplyLego
- CertApplyUpload
required: true
order: 0
accessId:
title: Access授权
helper: 阿里云授权AccessKeyId、AccessKeySecret
component:
name: access-selector
type: aliyun
required: true
order: 0
output: {}
pluginType: deploy

View File

@@ -0,0 +1,143 @@
showRunStrategy: false
default:
strategy:
runStrategy: 1
name: AliyunDeployCertToSLB
title: 阿里云-部署至SLB(传统负载均衡)
icon: svg:icon-aliyun
group: aliyun
desc: 部署证书到阿里云SLB(传统负载均衡)
needPlus: false
input:
cert:
title: 域名证书
helper: |-
请选择证书申请任务输出的域名证书
或者选择前置任务“上传证书到阿里云”任务的证书ID可以减少上传到阿里云的证书数量
component:
name: output-selector
from:
- CertApply
- CertApplyLego
- CertApplyUpload
- uploadCertToAliyun
required: true
order: 0
certDomains:
title: 当前证书域名
component:
name: cert-domains-getter
mergeScript: |2-
return {
component:{
inputKey: ctx.compute(({form})=>{
return form.cert
}),
}
}
required: false
order: 0
accessId:
title: Access授权
helper: 阿里云授权AccessKeyId、AccessKeySecret
component:
name: access-selector
type: aliyun
required: true
order: 0
regionId:
title: LB所在地区
component:
name: remote-select
vModel: value
type: plugin
typeName: AliyunDeployCertToSLB
action: onGetRegionList
watches:
- certDomains
- accessId
- accessId
required: true
mergeScript: |2-
return {
component:{
form: ctx.compute(({form})=>{
return form
})
},
}
helper: 请选择
order: 0
loadBalancers:
title: 负载均衡列表
component:
name: remote-select
vModel: value
mode: tags
type: plugin
typeName: AliyunDeployCertToSLB
action: onGetLoadBalanceList
watches:
- certDomains
- accessId
- regionId
required: true
mergeScript: |2-
return {
component:{
form: ctx.compute(({form})=>{
return form
})
},
}
helper: 要部署证书的负载均衡ID
order: 0
listeners:
title: 监听器列表
component:
name: remote-select
vModel: value
mode: tags
type: plugin
typeName: AliyunDeployCertToSLB
action: onGetListenerList
watches:
- certDomains
- accessId
- loadBalancers
required: true
mergeScript: |2-
return {
component:{
form: ctx.compute(({form})=>{
return form
})
},
}
helper: 要部署证书的监听器列表
order: 0
casEndpoint:
title: 证书接入点
helper: 不会选就保持默认即可
value: cas.aliyuncs.com
component:
name: a-select
options:
- value: cas.aliyuncs.com
label: 中国大陆
- value: cas.ap-southeast-1.aliyuncs.com
label: 新加坡
- value: cas.eu-central-1.aliyuncs.com
label: 德国(法兰克福)
required: true
order: 0
output: {}
pluginType: deploy

View File

@@ -0,0 +1,106 @@
showRunStrategy: false
default:
strategy:
runStrategy: 1
name: AliyunDeployCertToWaf
title: 阿里云-部署至阿里云WAF
icon: svg:icon-aliyun
group: aliyun
desc: 部署证书到阿里云WAF
needPlus: true
input:
cert:
title: 域名证书
helper: |-
请选择证书申请任务输出的域名证书
或者选择前置任务“上传证书到阿里云”任务的证书ID可以减少上传到阿里云的证书数量
component:
name: output-selector
from:
- CertApply
- CertApplyLego
- CertApplyUpload
- uploadCertToAliyun
required: true
order: 0
certDomains:
title: 当前证书域名
component:
name: cert-domains-getter
mergeScript: |2-
return {
component:{
inputKey: ctx.compute(({form})=>{
return form.cert
}),
}
}
required: false
order: 0
regionId:
title: WAF接入点
helper: 不会选就按默认
value: cn-hangzhou
component:
name: a-select
options:
- value: cn-hangzhou
label: 中国大陆-华东1(杭州)
- value: ap-southeast-1
label: 新加坡
required: true
order: 0
casEndpoint:
title: 证书接入点
helper: 跟上面保持一致即可
value: cas.aliyuncs.com
component:
name: a-select
options:
- value: cas.aliyuncs.com
label: 中国大陆
- value: cas.ap-southeast-1.aliyuncs.com
label: 新加坡
- value: cas.eu-central-1.aliyuncs.com
label: 德国(法兰克福)
required: true
order: 0
accessId:
title: Access授权
helper: 阿里云授权AccessKeyId、AccessKeySecret
component:
name: access-selector
type: aliyun
required: true
order: 0
cnameDomains:
title: CNAME站点
component:
name: remote-select
vModel: value
mode: tags
type: plugin
typeName: AliyunDeployCertToWaf
action: onGetCnameList
watches:
- certDomains
- accessId
- accessId
- regionId
required: true
mergeScript: |2-
return {
component:{
form: ctx.compute(({form})=>{
return form
})
},
}
helper: 请选择要部署证书的CNAME站点
order: 0
output: {}
pluginType: deploy

View File

@@ -0,0 +1,64 @@
showRunStrategy: false
default:
strategy:
runStrategy: 1
name: uploadCertToAliyun
title: 阿里云-上传证书到阿里云
icon: svg:icon-aliyun
group: aliyun
desc: 如果不想在阿里云上同一份证书上传多次,可以把此任务作为前置任务,其他阿里云任务证书那一项选择此任务的输出
input:
name:
title: 证书名称
helper: 证书上传后将以此参数作为名称前缀
order: 0
regionId:
title: 大区
value: cn-hangzhou
component:
name: a-auto-complete
vModel: value
options:
- value: cn-hangzhou
endpoint: cas.aliyuncs.com
label: cn-hangzhou-中国大陆
- value: eu-central-1
endpoint: cas.eu-central-1.aliyuncs.com
label: eu-central-1-德国(法兰克福)
- value: ap-southeast-1
endpoint: cas.ap-southeast-1.aliyuncs.com
label: ap-southeast-1-新加坡
- value: ap-southeast-3
endpoint: cas.ap-southeast-3.aliyuncs.com
label: ap-southeast-3-马来西亚(吉隆坡)
- value: ap-southeast-5
endpoint: cas.ap-southeast-5.aliyuncs.com
label: ap-southeast-5-印度尼西亚(雅加达)
- value: cn-hongkong
endpoint: cas.cn-hongkong.aliyuncs.com
label: cn-hongkong-中国香港
required: true
order: 0
cert:
title: 域名证书
helper: 请选择前置任务输出的域名证书
component:
name: output-selector
from:
- CertApply
- CertApplyLego
- CertApplyUpload
required: true
order: 0
accessId:
title: Access授权
helper: 阿里云授权AccessKeyId、AccessKeySecret
component:
name: access-selector
type: aliyun
required: true
order: 0
output:
aliyunCertId:
title: 上传成功后的阿里云CertId
pluginType: deploy

View File

@@ -0,0 +1,64 @@
showRunStrategy: false
default:
strategy:
runStrategy: 1
name: uploadCertToAliyun
title: 阿里云-上传证书到阿里云
icon: svg:icon-aliyun
group: aliyun
desc: 如果不想在阿里云上同一份证书上传多次,可以把此任务作为前置任务,其他阿里云任务证书那一项选择此任务的输出
input:
name:
title: 证书名称
helper: 证书上传后将以此参数作为名称前缀
order: 0
regionId:
title: 大区
value: cn-hangzhou
component:
name: a-auto-complete
vModel: value
options:
- value: cn-hangzhou
endpoint: cas.aliyuncs.com
label: cn-hangzhou-中国大陆
- value: eu-central-1
endpoint: cas.eu-central-1.aliyuncs.com
label: eu-central-1-德国(法兰克福)
- value: ap-southeast-1
endpoint: cas.ap-southeast-1.aliyuncs.com
label: ap-southeast-1-新加坡
- value: ap-southeast-3
endpoint: cas.ap-southeast-3.aliyuncs.com
label: ap-southeast-3-马来西亚(吉隆坡)
- value: ap-southeast-5
endpoint: cas.ap-southeast-5.aliyuncs.com
label: ap-southeast-5-印度尼西亚(雅加达)
- value: cn-hongkong
endpoint: cas.cn-hongkong.aliyuncs.com
label: cn-hongkong-中国香港
required: true
order: 0
cert:
title: 域名证书
helper: 请选择前置任务输出的域名证书
component:
name: output-selector
from:
- CertApply
- CertApplyLego
- CertApplyUpload
required: true
order: 0
accessId:
title: Access授权
helper: 阿里云授权AccessKeyId、AccessKeySecret
component:
name: access-selector
type: aliyun
required: true
order: 0
output:
aliyunCertId:
title: 上传成功后的阿里云CertId
pluginType: deploy