@certd/plugin-plus 1.34.2 → 1.34.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/d/baota/index.d.ts +1 -0
- package/dist/d/baota/waf-access.d.ts +12 -0
- package/dist/d/index.d.ts +1 -0
- package/dist/d/maoyun/access.d.ts +7 -0
- package/dist/d/maoyun/client.d.ts +17 -0
- package/dist/d/maoyun/index.d.ts +2 -0
- package/dist/d/maoyun/plugins/plugin-deploy-to-cdn.d.ts +11 -0
- package/dist/index.js +1 -1
- package/export-plugin-yaml.js +99 -0
- package/metadata/access_1panel.yaml +81 -0
- package/metadata/access_alipay.yaml +29 -0
- package/metadata/access_baidu.yaml +22 -0
- package/metadata/access_baishan.yaml +15 -0
- package/metadata/access_baota-waf.yaml +36 -0
- package/metadata/access_baota.yaml +50 -0
- package/metadata/access_cdnfly.yaml +29 -0
- package/metadata/access_k8s.yaml +16 -0
- package/metadata/access_kuocaicdn.yaml +20 -0
- package/metadata/access_lecdn.yaml +27 -0
- package/metadata/access_lucky.yaml +29 -0
- package/metadata/access_maoyun.yaml +26 -0
- package/metadata/access_plesk.yaml +27 -0
- package/metadata/access_safeline.yaml +26 -0
- package/metadata/access_synology.yaml +80 -0
- package/metadata/access_unicloud.yaml +21 -0
- package/metadata/access_wxpay.yaml +40 -0
- package/metadata/access_yfysms.yaml +21 -0
- package/metadata/access_yidun.yaml +22 -0
- package/metadata/access_yidunrcdn.yaml +20 -0
- package/metadata/access_yizhifu.yaml +45 -0
- package/metadata/deploy_1PanelDeployToWebsitePlugin.yaml +60 -0
- package/metadata/deploy_AliyunDeployCertToAll.yaml +174 -0
- package/metadata/deploy_BaiduDeployToCDN.yaml +43 -0
- package/metadata/deploy_BaishanUpdateCert.yaml +47 -0
- package/metadata/deploy_BaotaDeployPanelCert.yaml +34 -0
- package/metadata/deploy_BaotaDeployWebSiteCert.yaml +85 -0
- package/metadata/deploy_CdnflyDeployToCDN.yaml +123 -0
- package/metadata/deploy_CtyunDeployToCDN.yaml +97 -0
- package/metadata/deploy_DeployCertToAliyunAck.yaml +122 -0
- package/metadata/deploy_HostDeployToIIS.yaml +76 -0
- package/metadata/deploy_K8sDeployToIngress.yaml +46 -0
- package/metadata/deploy_K8sDeployToSecret.yaml +50 -0
- package/metadata/deploy_KuocaiDeployToRCDN.yaml +59 -0
- package/metadata/deploy_LeCDNUpdateCert.yaml +57 -0
- package/metadata/deploy_LeCDNUpdateCertV2.yaml +58 -0
- package/metadata/deploy_LuckyUpdateCert.yaml +73 -0
- package/metadata/deploy_MaoyunDeployToCdn.yaml +72 -0
- package/metadata/deploy_PleskDeploySiteCert.yaml +72 -0
- package/metadata/deploy_QiniuDeployCertToOSS.yaml +39 -0
- package/metadata/deploy_SafelineDeployToWebsitePlugin.yaml +75 -0
- package/metadata/deploy_SynologyDeployToPanel.yaml +45 -0
- package/metadata/deploy_UniCloudDeployToSpace.yaml +64 -0
- package/metadata/deploy_UploadCertToFTP.yaml +171 -0
- package/metadata/deploy_YidunDeployToCDN.yaml +48 -0
- package/metadata/deploy_YidunDeployToRCDN.yaml +59 -0
- package/package.json +12 -9
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
name: yfysms
|
|
2
|
+
title: 易发云短信
|
|
3
|
+
icon: material-symbols:shield-outline
|
|
4
|
+
desc: sms.yfyidc.cn/
|
|
5
|
+
input:
|
|
6
|
+
keyId:
|
|
7
|
+
title: KeyID
|
|
8
|
+
component:
|
|
9
|
+
placeholder: api_key
|
|
10
|
+
helper: '[获取密钥](http://sms.yfyidc.cn/user/index#)'
|
|
11
|
+
required: true
|
|
12
|
+
encrypt: true
|
|
13
|
+
keySecret:
|
|
14
|
+
title: KeySecret
|
|
15
|
+
component:
|
|
16
|
+
placeholder: ''
|
|
17
|
+
required: true
|
|
18
|
+
encrypt: true
|
|
19
|
+
type: builtIn
|
|
20
|
+
pluginType: access
|
|
21
|
+
scriptFilePath: ../../yidun/index.js
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
name: yidun
|
|
2
|
+
title: 易盾DCDN授权
|
|
3
|
+
icon: material-symbols:shield-outline
|
|
4
|
+
desc: https://user.yiduncdn.com
|
|
5
|
+
input:
|
|
6
|
+
apiKey:
|
|
7
|
+
title: api_key
|
|
8
|
+
component:
|
|
9
|
+
placeholder: api_key
|
|
10
|
+
helper: http://user.yiduncdn.com/console/index.html#/account/config/api,点击开启后获取
|
|
11
|
+
required: true
|
|
12
|
+
encrypt: true
|
|
13
|
+
apiSecret:
|
|
14
|
+
title: api_secret
|
|
15
|
+
component:
|
|
16
|
+
placeholder: api_secret
|
|
17
|
+
helper: http://user.yiduncdn.com/console/index.html#/account/config/api,点击开启后获取
|
|
18
|
+
required: true
|
|
19
|
+
encrypt: true
|
|
20
|
+
type: builtIn
|
|
21
|
+
pluginType: access
|
|
22
|
+
scriptFilePath: ../../yidun/index.js
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
name: yidunrcdn
|
|
2
|
+
title: 易盾rcdn授权
|
|
3
|
+
icon: material-symbols:shield-outline
|
|
4
|
+
desc: 易盾CDN,每月免费30G,[注册即领](https://rhcdn.yiduncdn.com/register?code=8mn536rrzfbf8)
|
|
5
|
+
input:
|
|
6
|
+
username:
|
|
7
|
+
title: 账户
|
|
8
|
+
component:
|
|
9
|
+
placeholder: 手机号
|
|
10
|
+
required: true
|
|
11
|
+
encrypt: true
|
|
12
|
+
password:
|
|
13
|
+
title: 密码
|
|
14
|
+
component:
|
|
15
|
+
placeholder: password
|
|
16
|
+
required: true
|
|
17
|
+
encrypt: true
|
|
18
|
+
type: builtIn
|
|
19
|
+
pluginType: access
|
|
20
|
+
scriptFilePath: ../../yidun/index.js
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
name: yizhifu
|
|
2
|
+
title: 易支付
|
|
3
|
+
icon: svg:icon-yizhifu
|
|
4
|
+
input:
|
|
5
|
+
url:
|
|
6
|
+
title: url
|
|
7
|
+
component:
|
|
8
|
+
placeholder: https://pay.xxxx.com
|
|
9
|
+
helper: 易支付系统地址
|
|
10
|
+
required: true
|
|
11
|
+
encrypt: false
|
|
12
|
+
pid:
|
|
13
|
+
title: 商户id
|
|
14
|
+
component:
|
|
15
|
+
placeholder: pid
|
|
16
|
+
required: true
|
|
17
|
+
encrypt: false
|
|
18
|
+
key:
|
|
19
|
+
title: key
|
|
20
|
+
component:
|
|
21
|
+
placeholder: key
|
|
22
|
+
required: true
|
|
23
|
+
encrypt: true
|
|
24
|
+
payType:
|
|
25
|
+
title: 固定支付方式
|
|
26
|
+
component:
|
|
27
|
+
placeholder: 固定一种支付方式,也就是submit.php中的type参数
|
|
28
|
+
helper: 不填则跳转到收银台由用户自己选择,如果您的易支付系统不支持收银台,则必须填写
|
|
29
|
+
required: false
|
|
30
|
+
encrypt: false
|
|
31
|
+
signType:
|
|
32
|
+
title: 签名方式
|
|
33
|
+
component:
|
|
34
|
+
name: a-select
|
|
35
|
+
vModel: value
|
|
36
|
+
options:
|
|
37
|
+
- label: MD5
|
|
38
|
+
value: MD5
|
|
39
|
+
- label: SHA256
|
|
40
|
+
value: SHA256
|
|
41
|
+
required: true
|
|
42
|
+
encrypt: false
|
|
43
|
+
type: builtIn
|
|
44
|
+
pluginType: access
|
|
45
|
+
scriptFilePath: ../../yizhifu/index.js
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
showRunStrategy: false
|
|
2
|
+
default:
|
|
3
|
+
strategy:
|
|
4
|
+
runStrategy: 1
|
|
5
|
+
name: 1PanelDeployToWebsitePlugin
|
|
6
|
+
title: 1Panel-部署证书到1Panel
|
|
7
|
+
icon: svg:icon-onepanel
|
|
8
|
+
desc: 更新1Panel的证书
|
|
9
|
+
group: panel
|
|
10
|
+
needPlus: false
|
|
11
|
+
input:
|
|
12
|
+
accessId:
|
|
13
|
+
title: 1Panel授权
|
|
14
|
+
helper: 1Panel授权
|
|
15
|
+
component:
|
|
16
|
+
name: access-selector
|
|
17
|
+
type: 1panel
|
|
18
|
+
required: true
|
|
19
|
+
order: 0
|
|
20
|
+
sslIds:
|
|
21
|
+
title: 1Panel证书ID
|
|
22
|
+
component:
|
|
23
|
+
name: remote-select
|
|
24
|
+
vModel: value
|
|
25
|
+
mode: tags
|
|
26
|
+
type: plugin
|
|
27
|
+
typeName: 1PanelDeployToWebsitePlugin
|
|
28
|
+
action: onGetSSLIds
|
|
29
|
+
watches:
|
|
30
|
+
- certDomains
|
|
31
|
+
- accessId
|
|
32
|
+
- accessId
|
|
33
|
+
required: true
|
|
34
|
+
mergeScript: |2-
|
|
35
|
+
|
|
36
|
+
return {
|
|
37
|
+
component:{
|
|
38
|
+
form: ctx.compute(({form})=>{
|
|
39
|
+
return form
|
|
40
|
+
})
|
|
41
|
+
},
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
helper: 要更新的1Panel证书id,选择授权之后,从下拉框中选择
|
|
45
|
+
order: 0
|
|
46
|
+
cert:
|
|
47
|
+
title: 域名证书
|
|
48
|
+
helper: 请选择前置任务输出的域名证书
|
|
49
|
+
component:
|
|
50
|
+
name: output-selector
|
|
51
|
+
from:
|
|
52
|
+
- CertApply
|
|
53
|
+
- CertApplyLego
|
|
54
|
+
- CertApplyUpload
|
|
55
|
+
required: true
|
|
56
|
+
order: 0
|
|
57
|
+
output: {}
|
|
58
|
+
type: builtIn
|
|
59
|
+
pluginType: deploy
|
|
60
|
+
scriptFilePath: ../../1panel/plugins/index.js
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
showRunStrategy: false
|
|
2
|
+
default:
|
|
3
|
+
strategy:
|
|
4
|
+
runStrategy: 1
|
|
5
|
+
name: AliyunDeployCertToAll
|
|
6
|
+
title: 阿里云-部署至任意云资源
|
|
7
|
+
icon: svg:icon-aliyun
|
|
8
|
+
group: aliyun
|
|
9
|
+
desc: >-
|
|
10
|
+
【不建议使用】需要消耗阿里云自动部署次数,支持SLB、LIVE、webHosting、VOD、CR、DCDN、DDoS、CDN、ALB、APIGateway、FC、GA、MSE、NLB、OSS、SAE、WAF等云产品
|
|
11
|
+
needPlus: false
|
|
12
|
+
input:
|
|
13
|
+
cert:
|
|
14
|
+
title: 域名证书
|
|
15
|
+
helper: |-
|
|
16
|
+
请选择证书申请任务输出的域名证书
|
|
17
|
+
或者选择前置任务“上传证书到阿里云”任务的证书ID,可以减少上传到阿里云的证书数量
|
|
18
|
+
component:
|
|
19
|
+
name: output-selector
|
|
20
|
+
from:
|
|
21
|
+
- CertApply
|
|
22
|
+
- CertApplyLego
|
|
23
|
+
- CertApplyUpload
|
|
24
|
+
- uploadCertToAliyun
|
|
25
|
+
required: true
|
|
26
|
+
order: 0
|
|
27
|
+
certDomains:
|
|
28
|
+
title: 当前证书域名
|
|
29
|
+
component:
|
|
30
|
+
name: cert-domains-getter
|
|
31
|
+
mergeScript: |2-
|
|
32
|
+
|
|
33
|
+
return {
|
|
34
|
+
component:{
|
|
35
|
+
inputKey: ctx.compute(({form})=>{
|
|
36
|
+
return form.cert
|
|
37
|
+
}),
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
required: false
|
|
42
|
+
order: 0
|
|
43
|
+
endpoint:
|
|
44
|
+
title: 接入点
|
|
45
|
+
helper: 不会选就按默认
|
|
46
|
+
value: cas.aliyuncs.com
|
|
47
|
+
component:
|
|
48
|
+
name: a-select
|
|
49
|
+
options:
|
|
50
|
+
- value: cas.aliyuncs.com
|
|
51
|
+
label: 中国大陆
|
|
52
|
+
- value: cas.ap-southeast-1.aliyuncs.com
|
|
53
|
+
label: 新加坡
|
|
54
|
+
- value: cas.eu-central-1.aliyuncs.com
|
|
55
|
+
label: 德国(法兰克福)
|
|
56
|
+
required: true
|
|
57
|
+
order: 0
|
|
58
|
+
accessId:
|
|
59
|
+
title: Access授权
|
|
60
|
+
helper: 阿里云授权AccessKeyId、AccessKeySecret
|
|
61
|
+
component:
|
|
62
|
+
name: access-selector
|
|
63
|
+
type: aliyun
|
|
64
|
+
required: true
|
|
65
|
+
order: 0
|
|
66
|
+
cloudProduct:
|
|
67
|
+
title: 云产品类型
|
|
68
|
+
helper: 请选择云产品类型
|
|
69
|
+
component:
|
|
70
|
+
name: a-select
|
|
71
|
+
vModel: value
|
|
72
|
+
options:
|
|
73
|
+
- value: SLB
|
|
74
|
+
label: SLB-传统型负载均衡 CLB(仅中国站)
|
|
75
|
+
- value: LIVE
|
|
76
|
+
label: LIVE-视频直播(仅中国站)
|
|
77
|
+
- value: webHosting
|
|
78
|
+
label: webHosting-云虚拟主机(仅中国站)
|
|
79
|
+
- value: VOD
|
|
80
|
+
label: VOD-视频点播(仅中国站)
|
|
81
|
+
- value: CR
|
|
82
|
+
label: CR-容器镜像服务(仅中国站)
|
|
83
|
+
- value: DCDN
|
|
84
|
+
label: DCDN-全站加速
|
|
85
|
+
- value: DDoS
|
|
86
|
+
label: DDos 防护
|
|
87
|
+
- value: CDN
|
|
88
|
+
label: CDN-内容分发网络
|
|
89
|
+
- value: ALB
|
|
90
|
+
label: ALB-应用负载均衡
|
|
91
|
+
- value: APIGateway
|
|
92
|
+
label: APIGateway-API 网关
|
|
93
|
+
- value: FC
|
|
94
|
+
label: FC-函数计算
|
|
95
|
+
- value: GA
|
|
96
|
+
label: GA-全球加速
|
|
97
|
+
- value: MSE
|
|
98
|
+
label: MSE-微服务引擎
|
|
99
|
+
- value: NLB
|
|
100
|
+
label: NLB-网络型负载均衡
|
|
101
|
+
- value: OSS
|
|
102
|
+
label: OSS-对象存储
|
|
103
|
+
- value: SAE
|
|
104
|
+
label: SAE-Serverless应用引擎
|
|
105
|
+
- value: WAF
|
|
106
|
+
label: WAF-Web应用防火墙
|
|
107
|
+
required: true
|
|
108
|
+
order: 0
|
|
109
|
+
productIds:
|
|
110
|
+
title: 要部署证书的云产品
|
|
111
|
+
component:
|
|
112
|
+
name: remote-select
|
|
113
|
+
vModel: value
|
|
114
|
+
mode: tags
|
|
115
|
+
type: plugin
|
|
116
|
+
typeName: AliyunDeployCertToAll
|
|
117
|
+
action: onGetProductList
|
|
118
|
+
watches:
|
|
119
|
+
- certDomains
|
|
120
|
+
- accessId
|
|
121
|
+
- cloudProduct
|
|
122
|
+
- accessId
|
|
123
|
+
required: true
|
|
124
|
+
mergeScript: |2-
|
|
125
|
+
|
|
126
|
+
return {
|
|
127
|
+
component:{
|
|
128
|
+
form: ctx.compute(({form})=>{
|
|
129
|
+
return form
|
|
130
|
+
})
|
|
131
|
+
},
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
helper: 请选择要部署证书的云产品,注意:新创建的云产品资源可能需要过1-2小时才会在此处显示
|
|
135
|
+
order: 0
|
|
136
|
+
contactIds:
|
|
137
|
+
title: 联系人
|
|
138
|
+
component:
|
|
139
|
+
name: remote-select
|
|
140
|
+
vModel: value
|
|
141
|
+
mode: tags
|
|
142
|
+
type: plugin
|
|
143
|
+
typeName: AliyunDeployCertToAll
|
|
144
|
+
action: onGetContactList
|
|
145
|
+
watches:
|
|
146
|
+
- certDomains
|
|
147
|
+
- accessId
|
|
148
|
+
required: true
|
|
149
|
+
mergeScript: |2-
|
|
150
|
+
|
|
151
|
+
return {
|
|
152
|
+
component:{
|
|
153
|
+
form: ctx.compute(({form})=>{
|
|
154
|
+
return form
|
|
155
|
+
})
|
|
156
|
+
},
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
helper: >-
|
|
160
|
+
请选择联系人,如果没有,需要先到[阿里云控制台创建联系人](https://yundun.console.aliyun.com/?p=cas#/informationManagement/person/)
|
|
161
|
+
order: 0
|
|
162
|
+
checkTimeout:
|
|
163
|
+
title: 检查超时时间
|
|
164
|
+
helper: 检查部署任务超时时间,单位分钟
|
|
165
|
+
value: 10
|
|
166
|
+
component:
|
|
167
|
+
name: a-input-number
|
|
168
|
+
vModel: value
|
|
169
|
+
required: true
|
|
170
|
+
order: 0
|
|
171
|
+
output: {}
|
|
172
|
+
type: builtIn
|
|
173
|
+
pluginType: deploy
|
|
174
|
+
scriptFilePath: ../../aliyun/plugins/index.js
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
showRunStrategy: false
|
|
2
|
+
default:
|
|
3
|
+
strategy:
|
|
4
|
+
runStrategy: 1
|
|
5
|
+
name: BaiduDeployToCDN
|
|
6
|
+
title: 百度云-部署证书到CDN
|
|
7
|
+
icon: ant-design:baidu-outlined
|
|
8
|
+
group: cdn
|
|
9
|
+
desc: 部署到百度云CDN
|
|
10
|
+
needPlus: false
|
|
11
|
+
input:
|
|
12
|
+
domains:
|
|
13
|
+
title: CDN域名
|
|
14
|
+
component:
|
|
15
|
+
name: a-select
|
|
16
|
+
vModel: value
|
|
17
|
+
mode: tags
|
|
18
|
+
helper: ''
|
|
19
|
+
required: true
|
|
20
|
+
order: 0
|
|
21
|
+
cert:
|
|
22
|
+
title: 域名证书
|
|
23
|
+
helper: 请选择前置任务输出的域名证书
|
|
24
|
+
component:
|
|
25
|
+
name: output-selector
|
|
26
|
+
from:
|
|
27
|
+
- CertApply
|
|
28
|
+
- CertApplyLego
|
|
29
|
+
- CertApplyUpload
|
|
30
|
+
required: true
|
|
31
|
+
order: 0
|
|
32
|
+
accessId:
|
|
33
|
+
title: 百度云授权
|
|
34
|
+
helper: 百度云授权
|
|
35
|
+
component:
|
|
36
|
+
name: access-selector
|
|
37
|
+
type: baidu
|
|
38
|
+
required: true
|
|
39
|
+
order: 0
|
|
40
|
+
output: {}
|
|
41
|
+
type: builtIn
|
|
42
|
+
pluginType: deploy
|
|
43
|
+
scriptFilePath: ../../baidu/plugins/plugin-deploy-to-cdn.js
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
showRunStrategy: false
|
|
2
|
+
default:
|
|
3
|
+
strategy:
|
|
4
|
+
runStrategy: 1
|
|
5
|
+
name: BaishanUpdateCert
|
|
6
|
+
title: 白山云-更新证书
|
|
7
|
+
icon: material-symbols:shield-outline
|
|
8
|
+
group: cdn
|
|
9
|
+
needPlus: false
|
|
10
|
+
input:
|
|
11
|
+
certId:
|
|
12
|
+
title: 证书ID
|
|
13
|
+
component:
|
|
14
|
+
name: a-input-number
|
|
15
|
+
vModel: value
|
|
16
|
+
helper: 证书ID,在证书管理页面查看,每条记录都有证书id
|
|
17
|
+
order: 0
|
|
18
|
+
certName:
|
|
19
|
+
title: 证书名称
|
|
20
|
+
component:
|
|
21
|
+
name: a-input
|
|
22
|
+
vModel: value
|
|
23
|
+
helper: 给证书设置一个名字,便于区分
|
|
24
|
+
order: 0
|
|
25
|
+
cert:
|
|
26
|
+
title: 域名证书
|
|
27
|
+
helper: 请选择前置任务输出的域名证书
|
|
28
|
+
component:
|
|
29
|
+
name: output-selector
|
|
30
|
+
from:
|
|
31
|
+
- CertApply
|
|
32
|
+
- CertApplyLego
|
|
33
|
+
- CertApplyUpload
|
|
34
|
+
required: true
|
|
35
|
+
order: 0
|
|
36
|
+
accessId:
|
|
37
|
+
title: 白山云授权
|
|
38
|
+
helper: 白山云授权
|
|
39
|
+
component:
|
|
40
|
+
name: access-selector
|
|
41
|
+
type: baishan
|
|
42
|
+
required: true
|
|
43
|
+
order: 0
|
|
44
|
+
output: {}
|
|
45
|
+
type: builtIn
|
|
46
|
+
pluginType: deploy
|
|
47
|
+
scriptFilePath: ../../baishan/plugins/plugin-update-cert.js
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
showRunStrategy: false
|
|
2
|
+
default:
|
|
3
|
+
strategy:
|
|
4
|
+
runStrategy: 1
|
|
5
|
+
name: BaotaDeployPanelCert
|
|
6
|
+
title: 宝塔-面板证书部署
|
|
7
|
+
icon: svg:icon-bt
|
|
8
|
+
group: panel
|
|
9
|
+
desc: 部署宝塔面板本身的ssl证书
|
|
10
|
+
needPlus: true
|
|
11
|
+
input:
|
|
12
|
+
cert:
|
|
13
|
+
title: 域名证书
|
|
14
|
+
helper: 请选择前置任务输出的域名证书
|
|
15
|
+
component:
|
|
16
|
+
name: output-selector
|
|
17
|
+
from:
|
|
18
|
+
- CertApply
|
|
19
|
+
- CertApplyLego
|
|
20
|
+
- CertApplyUpload
|
|
21
|
+
required: true
|
|
22
|
+
order: 0
|
|
23
|
+
accessId:
|
|
24
|
+
title: 宝塔授权
|
|
25
|
+
helper: baota的接口密钥,目前测试宝塔面板本身开启ssl之后,API接口就不能用了
|
|
26
|
+
component:
|
|
27
|
+
name: access-selector
|
|
28
|
+
type: baota
|
|
29
|
+
required: true
|
|
30
|
+
order: 0
|
|
31
|
+
output: {}
|
|
32
|
+
type: builtIn
|
|
33
|
+
pluginType: deploy
|
|
34
|
+
scriptFilePath: ../../baota/plugins/plugin-deploy-to-panel.js
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
showRunStrategy: false
|
|
2
|
+
default:
|
|
3
|
+
strategy:
|
|
4
|
+
runStrategy: 1
|
|
5
|
+
name: BaotaDeployWebSiteCert
|
|
6
|
+
title: 宝塔-网站证书部署
|
|
7
|
+
icon: svg:icon-bt
|
|
8
|
+
group: panel
|
|
9
|
+
desc: 部署宝塔管理的站点的ssl证书,目前支持网站站点、docker站点等。本插件也支持aaPanel。
|
|
10
|
+
needPlus: false
|
|
11
|
+
input:
|
|
12
|
+
cert:
|
|
13
|
+
title: 域名证书
|
|
14
|
+
helper: 请选择前置任务输出的域名证书
|
|
15
|
+
component:
|
|
16
|
+
name: output-selector
|
|
17
|
+
from:
|
|
18
|
+
- CertApply
|
|
19
|
+
- CertApplyLego
|
|
20
|
+
- CertApplyUpload
|
|
21
|
+
required: true
|
|
22
|
+
order: 0
|
|
23
|
+
certDomains:
|
|
24
|
+
title: 当前证书域名
|
|
25
|
+
component:
|
|
26
|
+
name: cert-domains-getter
|
|
27
|
+
mergeScript: |2-
|
|
28
|
+
|
|
29
|
+
return {
|
|
30
|
+
component:{
|
|
31
|
+
inputKey: ctx.compute(({form})=>{
|
|
32
|
+
return form.cert
|
|
33
|
+
}),
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
required: true
|
|
38
|
+
order: 0
|
|
39
|
+
accessId:
|
|
40
|
+
title: 宝塔授权
|
|
41
|
+
helper: baota的接口密钥
|
|
42
|
+
component:
|
|
43
|
+
name: access-selector
|
|
44
|
+
type: baota
|
|
45
|
+
required: true
|
|
46
|
+
order: 0
|
|
47
|
+
isDockerSite:
|
|
48
|
+
title: 是否Docker站点
|
|
49
|
+
value: false
|
|
50
|
+
component:
|
|
51
|
+
name: a-switch
|
|
52
|
+
vModel: checked
|
|
53
|
+
helper: 是否为docker站点
|
|
54
|
+
required: true
|
|
55
|
+
order: 0
|
|
56
|
+
siteName:
|
|
57
|
+
title: 站点名称
|
|
58
|
+
component:
|
|
59
|
+
name: remote-select
|
|
60
|
+
vModel: value
|
|
61
|
+
mode: tags
|
|
62
|
+
action: GetSiteList
|
|
63
|
+
watches:
|
|
64
|
+
- certDomains
|
|
65
|
+
- accessId
|
|
66
|
+
- isDockerSite
|
|
67
|
+
required: true
|
|
68
|
+
mergeScript: |2-
|
|
69
|
+
|
|
70
|
+
return {
|
|
71
|
+
component:{
|
|
72
|
+
form: ctx.compute(({form})=>{
|
|
73
|
+
return form
|
|
74
|
+
})
|
|
75
|
+
},
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
helper: |-
|
|
79
|
+
将会自动获取证书匹配的站点名称
|
|
80
|
+
宝塔版本低于9.0.0时,此处会获取失败,忽略错误,手动输入站点域名即可
|
|
81
|
+
order: 0
|
|
82
|
+
output: {}
|
|
83
|
+
type: builtIn
|
|
84
|
+
pluginType: deploy
|
|
85
|
+
scriptFilePath: ../../baota/plugins/plugin-deploy-to-website.js
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
showRunStrategy: false
|
|
2
|
+
default:
|
|
3
|
+
strategy:
|
|
4
|
+
runStrategy: 1
|
|
5
|
+
name: CdnflyDeployToCDN
|
|
6
|
+
title: cdnfly-部署证书到cdnfly
|
|
7
|
+
icon: majesticons:cloud-line
|
|
8
|
+
group: cdn
|
|
9
|
+
desc: cdnfly
|
|
10
|
+
needPlus: false
|
|
11
|
+
input:
|
|
12
|
+
cert:
|
|
13
|
+
title: 域名证书
|
|
14
|
+
helper: 请选择前置任务输出的域名证书
|
|
15
|
+
component:
|
|
16
|
+
name: output-selector
|
|
17
|
+
from:
|
|
18
|
+
- CertApply
|
|
19
|
+
- CertApplyLego
|
|
20
|
+
- CertApplyUpload
|
|
21
|
+
required: true
|
|
22
|
+
order: 0
|
|
23
|
+
certDomains:
|
|
24
|
+
title: 当前证书域名
|
|
25
|
+
component:
|
|
26
|
+
name: cert-domains-getter
|
|
27
|
+
mergeScript: |2-
|
|
28
|
+
|
|
29
|
+
return {
|
|
30
|
+
component:{
|
|
31
|
+
inputKey: ctx.compute(({form})=>{
|
|
32
|
+
return form.cert
|
|
33
|
+
}),
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
required: false
|
|
38
|
+
order: 0
|
|
39
|
+
accessId:
|
|
40
|
+
title: cdnfly授权
|
|
41
|
+
helper: cdnfly授权
|
|
42
|
+
component:
|
|
43
|
+
name: access-selector
|
|
44
|
+
type: cdnfly
|
|
45
|
+
required: true
|
|
46
|
+
order: 0
|
|
47
|
+
url:
|
|
48
|
+
title: cdnfly系统网址
|
|
49
|
+
component:
|
|
50
|
+
name: a-input
|
|
51
|
+
vModel: value
|
|
52
|
+
show: false
|
|
53
|
+
helper: 已废弃,请填写授权内的同名参数
|
|
54
|
+
order: 0
|
|
55
|
+
autoMatch:
|
|
56
|
+
title: 自动匹配站点
|
|
57
|
+
component:
|
|
58
|
+
name: a-switch
|
|
59
|
+
vModel: checked
|
|
60
|
+
helper: |-
|
|
61
|
+
是否自动匹配站点进行部署
|
|
62
|
+
如果选择自动匹配,则下方参数无需填写
|
|
63
|
+
order: 0
|
|
64
|
+
certId:
|
|
65
|
+
title: 证书ID
|
|
66
|
+
component:
|
|
67
|
+
name: remote-select
|
|
68
|
+
vModel: value
|
|
69
|
+
mode: tags
|
|
70
|
+
type: plugin
|
|
71
|
+
typeName: CdnflyDeployToCDNPlugin
|
|
72
|
+
action: onGetCertList
|
|
73
|
+
watches:
|
|
74
|
+
- certDomains
|
|
75
|
+
- accessId
|
|
76
|
+
- url
|
|
77
|
+
- cert
|
|
78
|
+
- accessId
|
|
79
|
+
required: false
|
|
80
|
+
mergeScript: |2-
|
|
81
|
+
|
|
82
|
+
return {
|
|
83
|
+
component:{
|
|
84
|
+
form: ctx.compute(({form})=>{
|
|
85
|
+
return form
|
|
86
|
+
})
|
|
87
|
+
},
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
helper: 请选择证书Id
|
|
91
|
+
order: 0
|
|
92
|
+
siteId:
|
|
93
|
+
title: 网站Id
|
|
94
|
+
component:
|
|
95
|
+
name: remote-select
|
|
96
|
+
vModel: value
|
|
97
|
+
mode: tags
|
|
98
|
+
type: plugin
|
|
99
|
+
typeName: CdnflyDeployToCDNPlugin
|
|
100
|
+
action: onGetSiteList
|
|
101
|
+
watches:
|
|
102
|
+
- certDomains
|
|
103
|
+
- accessId
|
|
104
|
+
- url
|
|
105
|
+
- cert
|
|
106
|
+
- accessId
|
|
107
|
+
required: false
|
|
108
|
+
mergeScript: |2-
|
|
109
|
+
|
|
110
|
+
return {
|
|
111
|
+
component:{
|
|
112
|
+
form: ctx.compute(({form})=>{
|
|
113
|
+
return form
|
|
114
|
+
})
|
|
115
|
+
},
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
helper: 请选择要部署证书的网站Id
|
|
119
|
+
order: 0
|
|
120
|
+
output: {}
|
|
121
|
+
type: builtIn
|
|
122
|
+
pluginType: deploy
|
|
123
|
+
scriptFilePath: ../../cdnfly/plugins/plugin-deploy-to-cdn.js
|