diff --git a/packages/core/basic/tsconfig.json b/packages/core/basic/tsconfig.json
index b85a99971..cc024d9b0 100644
--- a/packages/core/basic/tsconfig.json
+++ b/packages/core/basic/tsconfig.json
@@ -7,6 +7,8 @@
"esModuleInterop": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
+ "inlineSourceMap":false,
+ "sourceMap": false,
"noImplicitThis": true,
"noUnusedLocals": true,
"stripInternal": true,
@@ -21,7 +23,6 @@
"useDefineForClassFields": true,
"strict": true,
"typeRoots": [ "./typings", "./node_modules/@types"],
- "inlineSourceMap": true,
"resolveJsonModule": true,
"isolatedModules": false,
"lib": ["ESNext", "DOM"],
diff --git a/packages/core/pipeline/tsconfig.json b/packages/core/pipeline/tsconfig.json
index 09eb34665..c6a7a39df 100644
--- a/packages/core/pipeline/tsconfig.json
+++ b/packages/core/pipeline/tsconfig.json
@@ -7,7 +7,8 @@
"esModuleInterop": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
- "inlineSourceMap":true,
+ "inlineSourceMap":false,
+ "sourceMap": false,
"noImplicitThis": true,
"noUnusedLocals": true,
"importHelpers": true,
diff --git a/packages/libs/lib-huawei/tsconfig.json b/packages/libs/lib-huawei/tsconfig.json
index d72a2eea7..30ce7bdc3 100644
--- a/packages/libs/lib-huawei/tsconfig.json
+++ b/packages/libs/lib-huawei/tsconfig.json
@@ -21,7 +21,8 @@
"composite": false,
"useDefineForClassFields": true,
"strict": false,
- "sourceMap": true,
+ "sourceMap": false,
+ "inlineSourceMap": false,
"resolveJsonModule": true,
"isolatedModules": false,
"lib": ["ESNext", "DOM"],
diff --git a/packages/libs/lib-iframe/tsconfig.json b/packages/libs/lib-iframe/tsconfig.json
index 5f466c53d..08eacac0a 100644
--- a/packages/libs/lib-iframe/tsconfig.json
+++ b/packages/libs/lib-iframe/tsconfig.json
@@ -7,7 +7,7 @@
"esModuleInterop": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
- "inlineSourceMap":true,
+ "inlineSourceMap":false,
"noImplicitThis": true,
"noUnusedLocals": true,
"stripInternal": true,
diff --git a/packages/libs/lib-jdcloud/tsconfig.json b/packages/libs/lib-jdcloud/tsconfig.json
index d72a2eea7..30ce7bdc3 100644
--- a/packages/libs/lib-jdcloud/tsconfig.json
+++ b/packages/libs/lib-jdcloud/tsconfig.json
@@ -21,7 +21,8 @@
"composite": false,
"useDefineForClassFields": true,
"strict": false,
- "sourceMap": true,
+ "sourceMap": false,
+ "inlineSourceMap": false,
"resolveJsonModule": true,
"isolatedModules": false,
"lib": ["ESNext", "DOM"],
diff --git a/packages/libs/lib-k8s/tsconfig.json b/packages/libs/lib-k8s/tsconfig.json
index 5f466c53d..08eacac0a 100644
--- a/packages/libs/lib-k8s/tsconfig.json
+++ b/packages/libs/lib-k8s/tsconfig.json
@@ -7,7 +7,7 @@
"esModuleInterop": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
- "inlineSourceMap":true,
+ "inlineSourceMap":false,
"noImplicitThis": true,
"noUnusedLocals": true,
"stripInternal": true,
diff --git a/packages/libs/lib-server/tsconfig.json b/packages/libs/lib-server/tsconfig.json
index c98002c74..02cb80b89 100644
--- a/packages/libs/lib-server/tsconfig.json
+++ b/packages/libs/lib-server/tsconfig.json
@@ -8,7 +8,8 @@
"isolatedModules": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
- "inlineSourceMap":true,
+ "inlineSourceMap":false,
+ "sourceMap": false,
"noImplicitThis": true,
"noUnusedLocals": true,
"stripInternal": true,
diff --git a/packages/libs/midway-flyway-js/tsconfig.json b/packages/libs/midway-flyway-js/tsconfig.json
index 5b2bd8bb4..b58913cf7 100644
--- a/packages/libs/midway-flyway-js/tsconfig.json
+++ b/packages/libs/midway-flyway-js/tsconfig.json
@@ -7,7 +7,7 @@
"esModuleInterop": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
- "inlineSourceMap":true,
+ "inlineSourceMap":false,
"noImplicitThis": true,
"noUnusedLocals": true,
"stripInternal": true,
diff --git a/packages/plugins/plugin-cert/tsconfig.json b/packages/plugins/plugin-cert/tsconfig.json
index 07d6817d9..1bbe778b5 100644
--- a/packages/plugins/plugin-cert/tsconfig.json
+++ b/packages/plugins/plugin-cert/tsconfig.json
@@ -7,7 +7,8 @@
"esModuleInterop": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
- "inlineSourceMap":true,
+ "inlineSourceMap":false,
+ "sourceMap": false,
"noImplicitThis": true,
"noUnusedLocals": true,
"stripInternal": true,
diff --git a/packages/plugins/plugin-lib/tsconfig.json b/packages/plugins/plugin-lib/tsconfig.json
index 07d6817d9..1bbe778b5 100644
--- a/packages/plugins/plugin-lib/tsconfig.json
+++ b/packages/plugins/plugin-lib/tsconfig.json
@@ -7,7 +7,8 @@
"esModuleInterop": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
- "inlineSourceMap":true,
+ "inlineSourceMap":false,
+ "sourceMap": false,
"noImplicitThis": true,
"noUnusedLocals": true,
"stripInternal": true,
diff --git a/packages/ui/certd-server/export-plugin-yaml.js b/packages/ui/certd-server/export-plugin-yaml.js
index 75fbe839d..e66429671 100644
--- a/packages/ui/certd-server/export-plugin-yaml.js
+++ b/packages/ui/certd-server/export-plugin-yaml.js
@@ -56,7 +56,6 @@ async function genMetadata(){
fs.rmSync("./metadata", { recursive: true });
fs.mkdirSync("./metadata", { recursive: true });
for (const key in modules) {
- console.log(key)
const module = modules[key]
const entry = Object.entries(module)
for (const [name, value] of entry) {
@@ -88,6 +87,7 @@ async function genMetadata(){
const filePath = path.join(`./metadata/${pluginDefine.pluginType}_${pluginDefine.name}.yaml`)
pluginDefine.scriptFilePath = location
+ console.log(location)
const data = yaml.dump(pluginDefine)
fs.writeFileSync(filePath,data ,'utf8')
}
diff --git a/packages/ui/certd-server/metadata/access_apisix.yaml b/packages/ui/certd-server/metadata/access_apisix.yaml
new file mode 100644
index 000000000..463326e83
--- /dev/null
+++ b/packages/ui/certd-server/metadata/access_apisix.yaml
@@ -0,0 +1,28 @@
+name: apisix
+title: APISIX授权
+desc: ''
+icon: svg:icon-lucky
+input:
+ endpoint:
+ title: Apisix管理地址
+ component:
+ placeholder: http://192.168.11.11:9180
+ required: true
+ apiKey:
+ title: ApiKey
+ component:
+ placeholder: ApiKey
+ helper: >-
+ [参考文档](https://apisix.apache.org/docs/apisix/admin-api/#using-environment-variables)在config中配置admin
+ apiKey
+ required: true
+ encrypt: true
+ testRequest:
+ title: 测试
+ component:
+ name: api-test
+ action: TestRequest
+ helper: 点击测试接口是否正常
+type: builtIn
+pluginType: access
+scriptFilePath: ../../../plugins/plugin-apisix/index.js
diff --git a/packages/ui/certd-server/metadata/access_aws-cn.yaml b/packages/ui/certd-server/metadata/access_aws-cn.yaml
new file mode 100644
index 000000000..852e9d93e
--- /dev/null
+++ b/packages/ui/certd-server/metadata/access_aws-cn.yaml
@@ -0,0 +1,22 @@
+name: aws-cn
+title: 亚马逊云科技(国区)授权
+desc: ''
+icon: svg:icon-aws
+input:
+ accessKeyId:
+ title: accessKeyId
+ component:
+ placeholder: accessKeyId
+ helper: >-
+ 右上角->安全凭证->访问密钥,[点击前往](https://cn-north-1.console.amazonaws.cn/iam/home?region=cn-north-1#/security_credentials/access-key-wizard#)
+ required: true
+ secretAccessKey:
+ title: secretAccessKey
+ component:
+ placeholder: secretAccessKey
+ required: true
+ encrypt: true
+ helper: 请妥善保管您的安全访问密钥。您可以在AWS管理控制台的IAM中创建新的访问密钥。
+type: builtIn
+pluginType: access
+scriptFilePath: ../../../plugins/plugin-aws-cn/index.js
diff --git a/packages/ui/certd-server/metadata/access_aws.yaml b/packages/ui/certd-server/metadata/access_aws.yaml
index f653131bd..8250faf31 100644
--- a/packages/ui/certd-server/metadata/access_aws.yaml
+++ b/packages/ui/certd-server/metadata/access_aws.yaml
@@ -17,6 +17,154 @@ input:
required: true
encrypt: true
helper: 请妥善保管您的安全访问密钥。您可以在AWS管理控制台的IAM中创建新的访问密钥。
+ region:
+ title: region
+ component:
+ name: a-select
+ options:
+ - label: '------中国区------'
+ value: cn
+ disabled: true
+ - label: 北京
+ value: cn-north-1
+ - label: 宁夏
+ value: cn-northwest-1
+ - label: '------海外-----'
+ value: out
+ disabled: true
+ - label: us-east-1
+ value: us-east-1
+ - label: us-east-2
+ value: us-east-2
+ - label: us-west-1
+ value: us-west-1
+ - label: us-west-2
+ value: us-west-2
+ - label: af-south-1
+ value: af-south-1
+ - label: ap-east-1
+ value: ap-east-1
+ - label: ap-northeast-1
+ value: ap-northeast-1
+ - label: ap-northeast-2
+ value: ap-northeast-2
+ - label: ap-northeast-3
+ value: ap-northeast-3
+ - label: ap-south-1
+ value: ap-south-1
+ - label: ap-south-2
+ value: ap-south-2
+ - label: ap-southeast-1
+ value: ap-southeast-1
+ - label: ap-southeast-2
+ value: ap-southeast-2
+ - label: ap-southeast-3
+ value: ap-southeast-3
+ - label: ap-southeast-4
+ value: ap-southeast-4
+ - label: ap-southeast-5
+ value: ap-southeast-5
+ - label: ca-central-1
+ value: ca-central-1
+ - label: ca-west-1
+ value: ca-west-1
+ - label: eu-central-1
+ value: eu-central-1
+ - label: eu-central-2
+ value: eu-central-2
+ - label: eu-north-1
+ value: eu-north-1
+ - label: eu-south-1
+ value: eu-south-1
+ - label: eu-south-2
+ value: eu-south-2
+ - label: eu-west-1
+ value: eu-west-1
+ - label: eu-west-2
+ value: eu-west-2
+ - label: eu-west-3
+ value: eu-west-3
+ - label: il-central-1
+ value: il-central-1
+ - label: me-central-1
+ value: me-central-1
+ - label: me-south-1
+ value: me-south-1
+ - label: sa-east-1
+ value: sa-east-1
+ required: true
+ helper: 请选择您的默认AWS区域,主要区分中国区还是海外区即可
+ options:
+ - label: '------中国区------'
+ value: cn
+ disabled: true
+ - label: 北京
+ value: cn-north-1
+ - label: 宁夏
+ value: cn-northwest-1
+ - label: '------海外-----'
+ value: out
+ disabled: true
+ - label: us-east-1
+ value: us-east-1
+ - label: us-east-2
+ value: us-east-2
+ - label: us-west-1
+ value: us-west-1
+ - label: us-west-2
+ value: us-west-2
+ - label: af-south-1
+ value: af-south-1
+ - label: ap-east-1
+ value: ap-east-1
+ - label: ap-northeast-1
+ value: ap-northeast-1
+ - label: ap-northeast-2
+ value: ap-northeast-2
+ - label: ap-northeast-3
+ value: ap-northeast-3
+ - label: ap-south-1
+ value: ap-south-1
+ - label: ap-south-2
+ value: ap-south-2
+ - label: ap-southeast-1
+ value: ap-southeast-1
+ - label: ap-southeast-2
+ value: ap-southeast-2
+ - label: ap-southeast-3
+ value: ap-southeast-3
+ - label: ap-southeast-4
+ value: ap-southeast-4
+ - label: ap-southeast-5
+ value: ap-southeast-5
+ - label: ca-central-1
+ value: ca-central-1
+ - label: ca-west-1
+ value: ca-west-1
+ - label: eu-central-1
+ value: eu-central-1
+ - label: eu-central-2
+ value: eu-central-2
+ - label: eu-north-1
+ value: eu-north-1
+ - label: eu-south-1
+ value: eu-south-1
+ - label: eu-south-2
+ value: eu-south-2
+ - label: eu-west-1
+ value: eu-west-1
+ - label: eu-west-2
+ value: eu-west-2
+ - label: eu-west-3
+ value: eu-west-3
+ - label: il-central-1
+ value: il-central-1
+ - label: me-central-1
+ value: me-central-1
+ - label: me-south-1
+ value: me-south-1
+ - label: sa-east-1
+ value: sa-east-1
type: builtIn
pluginType: access
scriptFilePath: ../../../plugins/plugin-aws/index.js
diff --git a/packages/ui/certd-server/metadata/access_cmcc.yaml b/packages/ui/certd-server/metadata/access_cmcc.yaml
new file mode 100644
index 000000000..4303daea9
--- /dev/null
+++ b/packages/ui/certd-server/metadata/access_cmcc.yaml
@@ -0,0 +1,25 @@
+name: cmcc
+title: 中国移动CND授权
+desc: ''
+icon: svg:cmcc
+input:
+ tenantId:
+ title: TenantID
+ component:
+ placeholder: TenantID
+ required: true
+ tenantKey:
+ title: TenantKey
+ component:
+ placeholder: TenantKey
+ required: true
+ encrypt: true
+ testRequest:
+ title: 测试
+ component:
+ name: api-test
+ action: TestRequest
+ helper: 点击测试接口是否正常
+type: builtIn
+pluginType: access
+scriptFilePath: ../../../plugins/plugin-cmcc/index.js
diff --git a/packages/ui/certd-server/metadata/access_dnspod.yaml b/packages/ui/certd-server/metadata/access_dnspod.yaml
deleted file mode 100644
index 779c42299..000000000
--- a/packages/ui/certd-server/metadata/access_dnspod.yaml
+++ /dev/null
@@ -1,38 +0,0 @@
-name: dnspod
-title: dnspod(已废弃)
-desc: 腾讯云的域名解析接口已迁移到dnspod
-deprecated: dnspod已废弃,请换成腾讯云
-icon: svg:icon-tencentcloud
-input:
- endpoint:
- title: 端点
- component:
- placeholder: endpoint
- name: a-auto-complete
- vModel: value
- options:
- - value: https://dnsapi.cn
- label: 中国站
- - value: https://api.dnspod.com
- label: 国际站
- rules:
- - required: true
- message: 该项必填
- id:
- title: ID
- component:
- placeholder: dnspod token 的 id
- rules:
- - required: true
- message: 该项必填
- token:
- title: token
- component:
- placeholder: 开放接口token
- encrypt: true
- rules:
- - required: true
- message: 该项必填
-type: builtIn
-pluginType: access
-scriptFilePath: ../../../plugins/plugin-tencent/index.js
diff --git a/packages/ui/certd-server/metadata/access_dokploy.yaml b/packages/ui/certd-server/metadata/access_dokploy.yaml
new file mode 100644
index 000000000..5c1ec7736
--- /dev/null
+++ b/packages/ui/certd-server/metadata/access_dokploy.yaml
@@ -0,0 +1,28 @@
+name: dokploy
+title: Dokploy授权
+desc: ''
+icon: svg:icon-lucky
+input:
+ endpoint:
+ title: Dokploy地址
+ component:
+ placeholder: http://192.168.11.11:5480
+ required: true
+ apiKey:
+ title: ApiKey
+ component:
+ placeholder: ApiKey
+ helper: >-
+ [settings-profile](https://app.dokploy.com/dashboard/settings/profile)中配置API
+ Keys
+ required: true
+ encrypt: true
+ testRequest:
+ title: 测试
+ component:
+ name: api-test
+ action: TestRequest
+ helper: 点击测试接口是否正常
+type: builtIn
+pluginType: access
+scriptFilePath: ../../../plugins/plugin-dokploy/index.js
diff --git a/packages/ui/certd-server/metadata/access_farcdn.yaml b/packages/ui/certd-server/metadata/access_farcdn.yaml
new file mode 100644
index 000000000..0705c7050
--- /dev/null
+++ b/packages/ui/certd-server/metadata/access_farcdn.yaml
@@ -0,0 +1,49 @@
+name: farcdn
+title: farcdn授权
+desc: ''
+icon: svg:icon-lucky
+input:
+ endpoint:
+ title: 接口地址
+ value: https://open.farcdn.net/api/source
+ component:
+ placeholder: https://open.farcdn.net/api/source
+ name: a-input
+ vModel: value
+ required: true
+ accessKeyId:
+ title: accessKeyId
+ component:
+ placeholder: accessKeyId
+ component:
+ name: a-input
+ vModel: value
+ encrypt: false
+ required: true
+ accessKey:
+ title: accessKey
+ component:
+ placeholder: accessKey
+ component:
+ name: a-input
+ vModel: value
+ encrypt: true
+ required: true
+ httpProxy:
+ title: HttpProxy
+ component:
+ placeholder: http://192.168.x.x:10811
+ component:
+ name: a-input
+ vModel: value
+ encrypt: false
+ required: false
+ testRequest:
+ title: 测试
+ component:
+ name: api-test
+ action: TestRequest
+ helper: 点击测试接口是否正常
+type: builtIn
+pluginType: access
+scriptFilePath: ../../../plugins/plugin-farcdn/index.js
diff --git a/packages/ui/certd-server/metadata/access_flexcdn.yaml b/packages/ui/certd-server/metadata/access_flexcdn.yaml
new file mode 100644
index 000000000..83c5496ed
--- /dev/null
+++ b/packages/ui/certd-server/metadata/access_flexcdn.yaml
@@ -0,0 +1,59 @@
+name: flexcdn
+title: FlexCDN授权
+desc: ''
+icon: svg:icon-lucky
+input:
+ endpoint:
+ title: 接口地址
+ component:
+ placeholder: http://xxxxxxx:8080
+ name: a-input
+ vModel: value
+ required: true
+ type:
+ title: 用户类型
+ component:
+ placeholder: 请选择
+ name: a-select
+ vModel: value
+ options:
+ - value: user
+ label: 普通用户
+ - value: admin
+ label: 管理员
+ required: true
+ accessKeyId:
+ title: accessKeyId
+ component:
+ placeholder: accessKeyId
+ component:
+ name: a-input
+ vModel: value
+ encrypt: false
+ required: true
+ accessKey:
+ title: accessKey
+ component:
+ placeholder: accessKey
+ component:
+ name: a-input
+ vModel: value
+ encrypt: true
+ required: true
+ skipSslVerify:
+ title: 忽略证书校验
+ component:
+ name: a-switch
+ vModel: checked
+ encrypt: false
+ required: true
+ value: false
+ testRequest:
+ title: 测试
+ component:
+ name: api-test
+ action: TestRequest
+ helper: 点击测试接口看是否正常
+type: builtIn
+pluginType: access
+scriptFilePath: ../../../plugins/plugin-flex/index.js
diff --git a/packages/ui/certd-server/metadata/access_github.yaml b/packages/ui/certd-server/metadata/access_github.yaml
new file mode 100644
index 000000000..abc9c8cc2
--- /dev/null
+++ b/packages/ui/certd-server/metadata/access_github.yaml
@@ -0,0 +1,43 @@
+name: github
+title: Github授权
+desc: ''
+icon: ion:logo-github
+input:
+ endpoint:
+ title: 接口地址
+ component:
+ placeholder: 可以使用反向代理地址
+ component:
+ name: a-input
+ vModel: value
+ helper: 默认值:https://api.github.com
+ encrypt: false
+ required: false
+ githubToken:
+ title: GithubToken
+ component:
+ placeholder: GithubToken
+ component:
+ name: a-input
+ vModel: value
+ helper: 支持匿名访问的接口可以不填
+ encrypt: true
+ required: false
+ httpProxy:
+ title: HttpProxy
+ component:
+ placeholder: http://192.168.x.x:10811
+ component:
+ name: a-input
+ vModel: value
+ encrypt: false
+ required: false
+ testRequest:
+ title: 测试
+ component:
+ name: api-test
+ action: TestRequest
+ helper: 点击测试接口是否正常
+type: builtIn
+pluginType: access
+scriptFilePath: ../../../plugins/plugin-github/index.js
diff --git a/packages/ui/certd-server/metadata/access_godaddy.yaml b/packages/ui/certd-server/metadata/access_godaddy.yaml
new file mode 100644
index 000000000..ad98bb77b
--- /dev/null
+++ b/packages/ui/certd-server/metadata/access_godaddy.yaml
@@ -0,0 +1,35 @@
+name: godaddy
+title: godaddy授权
+icon: simple-icons:godaddy
+desc: ''
+input:
+ key:
+ title: Key
+ component:
+ placeholder: 授权key
+ helper: >-
+ [https://developer.godaddy.com/keys](https://developer.godaddy.com/keys),创建key(选择product,不要选择ote)
+ required: true
+ encrypt: false
+ secret:
+ title: Secret
+ component:
+ name: a-input-password
+ vModel: value
+ required: true
+ encrypt: true
+ httpProxy:
+ title: HTTP代理
+ component:
+ placeholder: http://xxxxx:xx
+ helper: 使用https_proxy
+ required: false
+ testRequest:
+ title: 测试
+ component:
+ name: api-test
+ action: TestRequest
+ helper: 点击测试接口是否正常(注意账号中必须要有50个域名才能使用API接口)
+type: builtIn
+pluginType: access
+scriptFilePath: ../../../plugins/plugin-godaddy/index.js
diff --git a/packages/ui/certd-server/metadata/access_goedge.yaml b/packages/ui/certd-server/metadata/access_goedge.yaml
new file mode 100644
index 000000000..cb7e28541
--- /dev/null
+++ b/packages/ui/certd-server/metadata/access_goedge.yaml
@@ -0,0 +1,51 @@
+name: goedge
+title: GoEdge授权
+icon: fa-solid:leaf:#6C6BF6
+order: 100
+input:
+ endpoint:
+ title: 系统地址
+ component:
+ name: a-input
+ vModel: value
+ helper: 例如:http://yourdomain.com:8002, 需要在API节点配置中开启HTTP访问地址
+ encrypt: false
+ required: true
+ userType:
+ title: 用户类型
+ component:
+ name: a-select
+ vModel: value
+ options:
+ - label: 用户
+ value: user
+ - label: 管理员
+ value: admin
+ encrypt: false
+ required: true
+ accessKeyId:
+ title: accessKeyId
+ helper: |-
+ 用户AccessKey: 在”平台用户-用户-详情-AccessKey” 或 商业版的“访问控制” 中创建。
+ 管理员AccessKey:在”系统用户-用户-详情-AccessKey” 中创建。
+ component:
+ name: a-input
+ vModel: value
+ encrypt: false
+ required: true
+ accessKey:
+ title: accessKey
+ component:
+ name: a-input
+ vModel: value
+ encrypt: true
+ required: true
+ testRequest:
+ title: 测试
+ component:
+ name: api-test
+ action: TestRequest
+ helper: 点击测试接口是否正常
+type: builtIn
+pluginType: access
+scriptFilePath: ../../../plugins/plugin-goedge/index.js
diff --git a/packages/ui/certd-server/metadata/access_huawei.yaml b/packages/ui/certd-server/metadata/access_huawei.yaml
index e04c2ea36..cce8bf6b4 100644
--- a/packages/ui/certd-server/metadata/access_huawei.yaml
+++ b/packages/ui/certd-server/metadata/access_huawei.yaml
@@ -2,6 +2,7 @@ name: huawei
title: 华为云授权
desc: ''
icon: svg:icon-huawei
+order: 0
input:
accessKeyId:
title: accessKeyId
diff --git a/packages/ui/certd-server/metadata/access_jdcloud.yaml b/packages/ui/certd-server/metadata/access_jdcloud.yaml
index 99f7a4f59..e68a91d7b 100644
--- a/packages/ui/certd-server/metadata/access_jdcloud.yaml
+++ b/packages/ui/certd-server/metadata/access_jdcloud.yaml
@@ -2,6 +2,7 @@ name: jdcloud
title: 京东云
desc: ''
icon: svg:icon-jdcloud
+order: 1
input:
accessKeyId:
title: AccessKeyID
diff --git a/packages/ui/certd-server/metadata/access_ksyun.yaml b/packages/ui/certd-server/metadata/access_ksyun.yaml
new file mode 100644
index 000000000..890f64e87
--- /dev/null
+++ b/packages/ui/certd-server/metadata/access_ksyun.yaml
@@ -0,0 +1,26 @@
+name: ksyun
+title: 金山云授权
+desc: ''
+icon: svg:icon-ksyun
+input:
+ accessKeyId:
+ title: AccessKeyID
+ component:
+ placeholder: AccessKeyID
+ helper: '[获取密钥](https://uc.console.ksyun.com/pro/iam/#/set/keyManage)'
+ required: true
+ accessKeySecret:
+ title: AccessKeySecret
+ component:
+ placeholder: AccessKeySecret
+ required: true
+ encrypt: true
+ testRequest:
+ title: 测试
+ component:
+ name: api-test
+ action: TestRequest
+ helper: 点击测试接口是否正常
+type: builtIn
+pluginType: access
+scriptFilePath: ../../../plugins/plugin-ksyun/index.js
diff --git a/packages/ui/certd-server/metadata/access_proxmox.yaml b/packages/ui/certd-server/metadata/access_proxmox.yaml
deleted file mode 100644
index 40201fce9..000000000
--- a/packages/ui/certd-server/metadata/access_proxmox.yaml
+++ /dev/null
@@ -1,34 +0,0 @@
-name: proxmox
-title: proxmox
-desc: ''
-icon: svg:icon-proxmox
-input:
- host:
- title: host
- component:
- placeholder: IP或域名
- required: true
- encrypt: false
- port:
- title: 端口
- component:
- placeholder: 端口
- component:
- name: a-input-number
- required: true
- encrypt: false
- username:
- title: 用户名
- component:
- placeholder: username
- required: true
- encrypt: false
- password:
- title: 密码
- component:
- placeholder: password
- required: true
- encrypt: true
-type: builtIn
-pluginType: access
-scriptFilePath: ../../../plugins/plugin-proxmox/index.js
diff --git a/packages/ui/certd-server/metadata/access_upyun.yaml b/packages/ui/certd-server/metadata/access_upyun.yaml
deleted file mode 100644
index 2ddd99bea..000000000
--- a/packages/ui/certd-server/metadata/access_upyun.yaml
+++ /dev/null
@@ -1,19 +0,0 @@
-name: upyun
-title: 又拍云
-desc: ''
-icon: svg:icon-upyun
-input:
- username:
- title: 账号
- component:
- placeholder: 又拍云账号
- required: true
- password:
- title: 密码
- component:
- placeholder: 又拍云密码
- required: true
- encrypt: true
-type: builtIn
-pluginType: access
-scriptFilePath: ../../../plugins/plugin-upyun/index.js
diff --git a/packages/ui/certd-server/metadata/access_volcengine.yaml b/packages/ui/certd-server/metadata/access_volcengine.yaml
deleted file mode 100644
index cdff6178c..000000000
--- a/packages/ui/certd-server/metadata/access_volcengine.yaml
+++ /dev/null
@@ -1,20 +0,0 @@
-name: volcengine
-title: 火山引擎
-desc: ''
-icon: svg:icon-volcengine
-input:
- accessKeyId:
- title: AccessKeyID
- component:
- placeholder: AccessKeyID
- helper: '[获取密钥](https://console.volcengine.com/iam/keymanage/)'
- required: true
- secretAccessKey:
- title: SecretAccessKey
- component:
- placeholder: SecretAccessKey
- required: true
- encrypt: true
-type: builtIn
-pluginType: access
-scriptFilePath: ../../../plugins/plugin-volcengine/index.js
diff --git a/packages/ui/certd-server/metadata/access_west.yaml b/packages/ui/certd-server/metadata/access_west.yaml
deleted file mode 100644
index a3076254d..000000000
--- a/packages/ui/certd-server/metadata/access_west.yaml
+++ /dev/null
@@ -1,67 +0,0 @@
-name: west
-title: 西部数码授权
-desc: ''
-icon: tabler:map-west
-input:
- scope:
- title: 权限范围
- component:
- name: a-select
- vModel: value
- options:
- - value: account
- label: 账户级别,对所有域名都有权限管理
- - value: domain
- label: 域名级别,仅能管理单个域名
- helper: 选择权限范围
- required: true
- username:
- title: 账号
- helper: 你的登录账号
- encrypt: false
- required: false
- mergeScript: |2-
-
- return {
- show:ctx.compute(({form})=>{
- return form.access.scope === 'account'
- })
- }
-
- apikey:
- title: ApiKey
- component:
- placeholder: 账户级别的key,对整个账户都有管理权限
- helper: |-
- 账户级别的key,对整个账户都有管理权限
- 前往https://www.west.cn/manager/API/APIconfig.asp,手动设置“api连接密码”
- encrypt: true
- required: false
- mergeScript: |2-
-
- return {
- show:ctx.compute(({form})=>{
- return form.access.scope === 'account'
- })
- }
-
- apidomainkey:
- title: apidomainkey
- component:
- placeholder: 域名级别的key,仅对单个域名有权限
- helper: |-
- 域名级别的key,仅对单个域名有权限。
- 前往[西部数据域名管理](https://www.west.cn/manager/domain/),点击域名,右上方点击ApiKey获取密钥
- encrypt: true
- required: false
- mergeScript: |2-
-
- return {
- show:ctx.compute(({form})=>{
- return form.access.scope === 'domain'
- })
- }
-
-type: builtIn
-pluginType: access
-scriptFilePath: ../../../plugins/plugin-west/index.js
diff --git a/packages/ui/certd-server/metadata/access_woai.yaml b/packages/ui/certd-server/metadata/access_woai.yaml
deleted file mode 100644
index 941592afd..000000000
--- a/packages/ui/certd-server/metadata/access_woai.yaml
+++ /dev/null
@@ -1,19 +0,0 @@
-name: woai
-title: 我爱云授权
-desc: 我爱云CDN
-icon: clarity:plugin-line
-input:
- username:
- title: 账号
- component:
- placeholder: 我爱云的账号
- required: true
- password:
- title: 密码
- component:
- placeholder: 我爱云的密码
- required: true
- encrypt: true
-type: builtIn
-pluginType: access
-scriptFilePath: ../../../plugins/plugin-woai/index.js
diff --git a/packages/ui/certd-server/metadata/deploy_AliyunDeployCertToALB.yaml b/packages/ui/certd-server/metadata/deploy_AliyunDeployCertToALB.yaml
index acec5e245..2a7260784 100644
--- a/packages/ui/certd-server/metadata/deploy_AliyunDeployCertToALB.yaml
+++ b/packages/ui/certd-server/metadata/deploy_AliyunDeployCertToALB.yaml
@@ -17,9 +17,7 @@ input:
component:
name: output-selector
from:
- - CertApply
- - CertApplyLego
- - CertApplyUpload
+ - ':cert:'
- uploadCertToAliyun
required: true
order: 0
@@ -37,8 +35,24 @@ input:
}
}
+ template: false
required: false
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
@@ -55,6 +69,8 @@ input:
type: plugin
typeName: AliyunDeployCertToALB
action: onGetRegionList
+ search: false
+ pager: false
watches:
- certDomains
- accessId
@@ -81,6 +97,8 @@ input:
type: plugin
typeName: AliyunDeployCertToALB
action: onGetLoadBalanceList
+ search: false
+ pager: false
watches:
- certDomains
- accessId
@@ -107,6 +125,8 @@ input:
type: plugin
typeName: AliyunDeployCertToALB
action: onGetListenerList
+ search: false
+ pager: false
watches:
- certDomains
- accessId
@@ -124,19 +144,25 @@ input:
helper: 要部署证书的监听器列表
order: 0
- casEndpoint:
- title: 证书接入点
- helper: 不会选就保持默认即可
- value: cas.aliyuncs.com
+ deployType:
+ title: 部署证书类型
+ value: default
component:
name: a-select
+ vModel: value
options:
- - value: cas.aliyuncs.com
- label: 中国大陆
- - value: cas.ap-southeast-1.aliyuncs.com
- label: 新加坡
- - value: cas.eu-central-1.aliyuncs.com
- label: 德国(法兰克福)
+ - label: 默认证书
+ value: default
+ - label: 扩展证书
+ value: extension
+ required: true
+ order: 0
+ clearExpiredCert:
+ title: 是否清理过期证书
+ value: true
+ component:
+ name: a-switch
+ vModel: checked
required: true
order: 0
output: {}
diff --git a/packages/ui/certd-server/metadata/deploy_UpyunDeployToCdn.yaml b/packages/ui/certd-server/metadata/deploy_AliyunDeployCertToESA.yaml
similarity index 53%
rename from packages/ui/certd-server/metadata/deploy_UpyunDeployToCdn.yaml
rename to packages/ui/certd-server/metadata/deploy_AliyunDeployCertToESA.yaml
index de7147a04..23c28b2c0 100644
--- a/packages/ui/certd-server/metadata/deploy_UpyunDeployToCdn.yaml
+++ b/packages/ui/certd-server/metadata/deploy_AliyunDeployCertToESA.yaml
@@ -2,22 +2,22 @@ showRunStrategy: false
default:
strategy:
runStrategy: 1
-name: UpyunDeployToCdn
-title: 又拍云-部署证书到CDN/USS
-icon: svg:icon-upyun
-desc: 支持又拍云CDN,又拍云云存储USS
-group: cdn
-needPlus: true
+name: AliyunDeployCertToESA
+title: 阿里云-部署至ESA
+icon: svg:icon-aliyun
+group: aliyun
+desc: 部署证书到阿里云ESA(边缘安全加速),自动删除过期证书
+needPlus: false
input:
cert:
title: 域名证书
- helper: 请选择前置任务输出的域名证书
+ helper: 请选择证书申请任务输出的域名证书
component:
name: output-selector
from:
- - CertApply
- - CertApplyLego
- - CertApplyUpload
+ - ':cert:'
+ - uploadCertToAliyun
+ required: true
order: 0
certDomains:
title: 当前证书域名
@@ -33,28 +33,58 @@ input:
}
}
+ template: false
required: false
order: 0
- accessId:
- title: Upyun授权
+ regionId:
+ title: 大区
+ value: cn-hangzhou
component:
- name: access-selector
- type: upyun
+ name: a-auto-complete
+ vModel: value
+ options:
+ - value: cn-hangzhou
+ label: 华东1(杭州)
+ - value: ap-southeast-1
+ label: 新加坡
required: true
order: 0
- cdnList:
- title: 加速域名
+ 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: 新加坡
+ required: true
+ order: 0
+ accessId:
+ title: Access授权
+ helper: 阿里云授权AccessKeyId、AccessKeySecret
+ component:
+ name: access-selector
+ type: aliyun
+ required: true
+ order: 0
+ siteIds:
+ title: 站点
component:
name: remote-select
vModel: value
mode: tags
type: plugin
- typeName: UpyunDeployToCdn
- action: onGetCdnList
+ action: onGetSiteList
+ search: false
+ pager: false
watches:
- certDomains
- accessId
- accessId
+ - regionId
required: true
mergeScript: |2-
@@ -66,39 +96,9 @@ input:
},
}
- helper: 选择加速域名,可以手动输入
- order: 0
- forceHttps:
- title: 强制HTTPS
- value: keep
- component:
- name: a-select
- vModel: value
- options:
- - value: 'true'
- label: 强制HTTPS
- - value: 'false'
- label: 不强制HTTPS
- - value: keep
- label: 保持原样
- required: true
- order: 0
- https:
- title: 开启HTTPS
- value: 'true'
- component:
- name: a-select
- vModel: value
- options:
- - value: 'true'
- label: 开启HTTPS
- - value: 'false'
- label: 关闭HTTPS
- - value: keep
- label: 保持原样
- required: true
+ helper: 请选择要部署证书的站点
order: 0
output: {}
type: builtIn
pluginType: deploy
-scriptFilePath: ../../../plugins/plugin-upyun/plugins/plugin-depoy-to-cdn.js
+scriptFilePath: ../../../plugins/plugin-aliyun/plugin/index.js
diff --git a/packages/ui/certd-server/metadata/deploy_AliyunDeployCertToFC.yaml b/packages/ui/certd-server/metadata/deploy_AliyunDeployCertToFC.yaml
index 05a2240ff..98e391e5b 100644
--- a/packages/ui/certd-server/metadata/deploy_AliyunDeployCertToFC.yaml
+++ b/packages/ui/certd-server/metadata/deploy_AliyunDeployCertToFC.yaml
@@ -6,8 +6,8 @@ name: AliyunDeployCertToFC
title: 阿里云-部署至阿里云FC(3.0)
icon: svg:icon-aliyun
group: aliyun
-desc: 部署证书到阿里云函数计算(FC3.0),【注意】证书的加密算法必须选择【pkcs1旧版】
-needPlus: true
+desc: 部署证书到阿里云函数计算(FC3.0)
+needPlus: false
input:
cert:
title: 域名证书
@@ -15,9 +15,7 @@ input:
component:
name: output-selector
from:
- - CertApply
- - CertApplyLego
- - CertApplyUpload
+ - ':cert:'
required: true
order: 0
certDomains:
@@ -34,6 +32,7 @@ input:
}
}
+ template: false
required: false
order: 0
regionId:
@@ -110,6 +109,8 @@ input:
type: plugin
typeName: AliyunDeployCertToFC
action: onGetDomainList
+ search: false
+ pager: false
watches:
- certDomains
- accessId
@@ -126,15 +127,14 @@ input:
},
}
- helper: |-
- 请选择要部署证书的域名
- 【注意】证书的加密算法必须选择【pkcs1旧版】(否则会报'private key' has to be in PEM format错误)
+ helper: 请选择要部署证书的域名
order: 0
protocol:
title: 域名支持的协议类型
+ value: ''
component:
name: a-select
- value: ''
+ vModel: value
options:
- value: ''
label: 保持原样(适用于原来已经开启了HTTPS)
@@ -143,6 +143,10 @@ input:
- value: HTTP,HTTPS
label: HTTP与HTTPS同时支持
order: 0
+ certName:
+ title: 证书名称
+ helper: 上传后将以此名称作为前缀备注
+ order: 0
output: {}
type: builtIn
pluginType: deploy
diff --git a/packages/ui/certd-server/metadata/deploy_AliyunDeployCertToNLB.yaml b/packages/ui/certd-server/metadata/deploy_AliyunDeployCertToNLB.yaml
index 6dcb652a7..19f40c66b 100644
--- a/packages/ui/certd-server/metadata/deploy_AliyunDeployCertToNLB.yaml
+++ b/packages/ui/certd-server/metadata/deploy_AliyunDeployCertToNLB.yaml
@@ -17,9 +17,7 @@ input:
component:
name: output-selector
from:
- - CertApply
- - CertApplyLego
- - CertApplyUpload
+ - ':cert:'
- uploadCertToAliyun
required: true
order: 0
@@ -37,8 +35,24 @@ input:
}
}
+ template: false
required: false
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
@@ -55,6 +69,8 @@ input:
type: plugin
typeName: AliyunDeployCertToNLB
action: onGetRegionList
+ search: false
+ pager: false
watches:
- certDomains
- accessId
@@ -81,6 +97,8 @@ input:
type: plugin
typeName: AliyunDeployCertToNLB
action: onGetLoadBalanceList
+ search: false
+ pager: false
watches:
- certDomains
- accessId
@@ -107,6 +125,8 @@ input:
type: plugin
typeName: AliyunDeployCertToNLB
action: onGetListenerList
+ search: false
+ pager: false
watches:
- certDomains
- accessId
@@ -124,19 +144,17 @@ input:
helper: 要部署证书的监听器列表
order: 0
- casEndpoint:
- title: 证书接入点
- helper: 不会选就保持默认即可
- value: cas.aliyuncs.com
+ deployType:
+ title: 部署证书类型
+ value: default
component:
name: a-select
+ vModel: value
options:
- - value: cas.aliyuncs.com
- label: 中国大陆
- - value: cas.ap-southeast-1.aliyuncs.com
- label: 新加坡
- - value: cas.eu-central-1.aliyuncs.com
- label: 德国(法兰克福)
+ - label: 默认证书
+ value: default
+ - label: 扩展证书
+ value: extension
required: true
order: 0
output: {}
diff --git a/packages/ui/certd-server/metadata/deploy_AliyunDeployCertToSLB.yaml b/packages/ui/certd-server/metadata/deploy_AliyunDeployCertToSLB.yaml
index 73a04154e..07e4e9532 100644
--- a/packages/ui/certd-server/metadata/deploy_AliyunDeployCertToSLB.yaml
+++ b/packages/ui/certd-server/metadata/deploy_AliyunDeployCertToSLB.yaml
@@ -3,10 +3,10 @@ default:
strategy:
runStrategy: 1
name: AliyunDeployCertToSLB
-title: 阿里云-部署至SLB(传统负载均衡)
+title: 阿里云-部署至CLB(传统负载均衡)
icon: svg:icon-aliyun
group: aliyun
-desc: 部署证书到阿里云SLB(传统负载均衡)
+desc: 部署证书到阿里云CLB(传统负载均衡)
needPlus: false
input:
cert:
@@ -17,9 +17,7 @@ input:
component:
name: output-selector
from:
- - CertApply
- - CertApplyLego
- - CertApplyUpload
+ - ':cert:'
- uploadCertToAliyun
required: true
order: 0
@@ -37,8 +35,24 @@ input:
}
}
+ template: false
required: false
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
@@ -53,8 +67,9 @@ input:
name: remote-select
vModel: value
type: plugin
- typeName: AliyunDeployCertToSLB
action: onGetRegionList
+ search: false
+ pager: false
watches:
- certDomains
- accessId
@@ -79,8 +94,9 @@ input:
vModel: value
mode: tags
type: plugin
- typeName: AliyunDeployCertToSLB
action: onGetLoadBalanceList
+ search: false
+ pager: false
watches:
- certDomains
- accessId
@@ -105,8 +121,9 @@ input:
vModel: value
mode: tags
type: plugin
- typeName: AliyunDeployCertToSLB
action: onGetListenerList
+ search: false
+ pager: false
watches:
- certDomains
- accessId
@@ -124,20 +141,45 @@ input:
helper: 要部署证书的监听器列表
order: 0
- casEndpoint:
- title: 证书接入点
- helper: 不会选就保持默认即可
- value: cas.aliyuncs.com
+ deployDefault:
+ title: 部署默认证书
+ value: true
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: 德国(法兰克福)
+ name: a-switch
+ vModel: checked
+ order: 0
+ deployExtension:
+ title: 部署扩展证书
+ value: false
+ component:
+ name: a-switch
+ vModel: checked
+ order: 0
+ extensionDomains:
+ title: 扩展域名列表
+ component:
+ name: remote-select
+ vModel: value
+ mode: tags
+ type: plugin
+ action: onGetExtensionDomainList
+ search: false
+ pager: false
+ watches:
+ - certDomains
+ - accessId
+ - listeners
+ - deployExtension
required: true
+ mergeScript: |2-
+
+ return {
+ show: ctx.compute(({form})=>{
+ return form.deployExtension;
+ })
+ }
+
+ helper: 要部署扩展域名列表
order: 0
output: {}
type: builtIn
diff --git a/packages/ui/certd-server/metadata/deploy_VolcengineDeployToCDN.yaml b/packages/ui/certd-server/metadata/deploy_AliyunDeployCertToVod.yaml
similarity index 57%
rename from packages/ui/certd-server/metadata/deploy_VolcengineDeployToCDN.yaml
rename to packages/ui/certd-server/metadata/deploy_AliyunDeployCertToVod.yaml
index f6b545c68..b6729ed48 100644
--- a/packages/ui/certd-server/metadata/deploy_VolcengineDeployToCDN.yaml
+++ b/packages/ui/certd-server/metadata/deploy_AliyunDeployCertToVod.yaml
@@ -2,22 +2,20 @@ showRunStrategy: false
default:
strategy:
runStrategy: 1
-name: VolcengineDeployToCDN
-title: 火山引擎-部署证书至CDN
-icon: svg:icon-volcengine
-group: volcengine
-desc: 支持网页,文件下载,音视频点播
+name: AliyunDeployCertToVod
+title: 阿里云-部署至VOD
+icon: svg:icon-aliyun
+group: aliyun
+desc: 部署证书到阿里云视频点播(vod)
+needPlus: false
input:
cert:
title: 域名证书
- helper: 请选择前置任务输出的域名证书
+ helper: 请选择证书申请任务输出的域名证书
component:
name: output-selector
from:
- - CertApply
- - CertApplyLego
- - CertApplyUpload
- - VolcengineUploadToCertCenter
+ - ':cert:'
required: true
order: 0
certDomains:
@@ -34,45 +32,46 @@ input:
}
}
+ template: false
required: false
order: 0
- accessId:
- title: Access授权
- helper: 火山引擎AccessKeyId、AccessKeySecret
- component:
- name: access-selector
- type: volcengine
- required: true
- order: 0
- serviceType:
- title: 服务类型
- helper: 网页,文件下载,音视频点播
+ casEndpoint:
+ title: 证书接入点
+ helper: 不会选就保持默认即可
+ value: cas.aliyuncs.com
component:
name: a-select
options:
- - label: 网页
- value: web
- - label: 文件下载
- value: download
- - label: 音视频点播
- value: video
- value: web
+ - 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
- domainName:
- title: CDN加速域名
+ accessId:
+ title: Access授权
+ helper: 阿里云授权AccessKeyId、AccessKeySecret
+ component:
+ name: access-selector
+ type: aliyun
+ required: true
+ order: 0
+ domainList:
+ title: 加速域名
component:
name: remote-select
vModel: value
mode: tags
type: plugin
action: onGetDomainList
+ search: true
+ pager: true
watches:
- certDomains
- accessId
- - certDomains
- accessId
- - serviceType
required: true
mergeScript: |2-
@@ -84,9 +83,9 @@ input:
},
}
- helper: 你在火山引擎上配置的CDN加速域名,比如:certd.docmirror.cn
+ helper: 请选择要部署证书的域名
order: 0
output: {}
type: builtIn
pluginType: deploy
-scriptFilePath: ../../../plugins/plugin-volcengine/plugins/plugin-deploy-to-cdn.js
+scriptFilePath: ../../../plugins/plugin-aliyun/plugin/index.js
diff --git a/packages/ui/certd-server/metadata/deploy_AliyunDeployCertToWaf.yaml b/packages/ui/certd-server/metadata/deploy_AliyunDeployCertToWaf.yaml
index c1b885115..227bfc371 100644
--- a/packages/ui/certd-server/metadata/deploy_AliyunDeployCertToWaf.yaml
+++ b/packages/ui/certd-server/metadata/deploy_AliyunDeployCertToWaf.yaml
@@ -7,7 +7,7 @@ title: 阿里云-部署至阿里云WAF
icon: svg:icon-aliyun
group: aliyun
desc: 部署证书到阿里云WAF
-needPlus: true
+needPlus: false
input:
cert:
title: 域名证书
@@ -17,9 +17,7 @@ input:
component:
name: output-selector
from:
- - CertApply
- - CertApplyLego
- - CertApplyUpload
+ - ':cert:'
- uploadCertToAliyun
required: true
order: 0
@@ -37,6 +35,7 @@ input:
}
}
+ template: false
required: false
order: 0
regionId:
@@ -82,8 +81,9 @@ input:
vModel: value
mode: tags
type: plugin
- typeName: AliyunDeployCertToWaf
action: onGetCnameList
+ search: true
+ pager: true
watches:
- certDomains
- accessId
@@ -102,6 +102,28 @@ input:
helper: 请选择要部署证书的CNAME站点
order: 0
+ tlsVersion:
+ title: TLS版本
+ value: tlsv1.2
+ component:
+ name: a-select
+ options:
+ - value: tlsv1
+ label: TLSv1
+ - value: tlsv1.1
+ label: TLSv1.1
+ - value: tlsv1.2
+ label: TLSv1.2
+ required: true
+ order: 0
+ enableTLSv3:
+ title: 启用TLSv3
+ value: true
+ component:
+ name: a-switch
+ vModel: checked
+ required: true
+ order: 0
output: {}
type: builtIn
pluginType: deploy
diff --git a/packages/ui/certd-server/metadata/deploy_QiniuDeployCertToCDN.yaml b/packages/ui/certd-server/metadata/deploy_ApisixRefreshCert.yaml
similarity index 60%
rename from packages/ui/certd-server/metadata/deploy_QiniuDeployCertToCDN.yaml
rename to packages/ui/certd-server/metadata/deploy_ApisixRefreshCert.yaml
index 4298273b3..98fc736e7 100644
--- a/packages/ui/certd-server/metadata/deploy_QiniuDeployCertToCDN.yaml
+++ b/packages/ui/certd-server/metadata/deploy_ApisixRefreshCert.yaml
@@ -2,23 +2,20 @@ showRunStrategy: false
default:
strategy:
runStrategy: 1
-name: QiniuDeployCertToCDN
-title: 七牛云-部署证书至CDN
-icon: svg:icon-qiniuyun
-group: qiniu
-desc: 自动部署域名证书至七牛云CDN
+name: ApisixRefreshCert
+title: APISIX-更新证书
+desc: 自动更新APISIX证书
+icon: svg:icon-lucky
+group: cdn
+needPlus: true
input:
cert:
title: 域名证书
- helper: 请选择前置任务输出的域名证书,或者上传到七牛云的证书id
+ helper: 请选择前置任务输出的域名证书
component:
name: output-selector
from:
- - CertApply
- - CertApplyLego
- - CertApplyUpload
- - QiniuCertUpload
- required: true
+ - ':cert:'
order: 0
certDomains:
title: 当前证书域名
@@ -34,30 +31,29 @@ input:
}
}
+ template: false
required: false
order: 0
accessId:
- title: Access授权
- helper: 七牛云授权
+ title: Apisix授权
component:
name: access-selector
- type: qiniu
+ type: apisix
required: true
order: 0
- domainName:
- title: CDN加速域名
+ certList:
+ title: 证书Id
component:
name: remote-select
vModel: value
mode: tags
type: plugin
- action: onGetDomainList
+ action: onGetCertList
+ search: false
+ pager: false
watches:
- certDomains
- accessId
- rules:
- - type: domains
- allowDotStart: true
required: true
mergeScript: |2-
@@ -69,9 +65,9 @@ input:
},
}
- helper: 你在七牛云上配置的CDN加速域名,比如:certd.handsfree.work
+ helper: 要更新的证书id,如果这里没有,请先给手动绑定一次证书
order: 0
output: {}
type: builtIn
pluginType: deploy
-scriptFilePath: ../../../plugins/plugin-qiniu/plugin/index.js
+scriptFilePath: ../../../plugins/plugin-apisix/plugins/plugin-refresh-cert.js
diff --git a/packages/ui/certd-server/metadata/deploy_VolcengineDeployToVOD.yaml b/packages/ui/certd-server/metadata/deploy_AwsCNDeployToCloudFront.yaml
similarity index 58%
rename from packages/ui/certd-server/metadata/deploy_VolcengineDeployToVOD.yaml
rename to packages/ui/certd-server/metadata/deploy_AwsCNDeployToCloudFront.yaml
index c3da7fe81..38bfdfd9c 100644
--- a/packages/ui/certd-server/metadata/deploy_VolcengineDeployToVOD.yaml
+++ b/packages/ui/certd-server/metadata/deploy_AwsCNDeployToCloudFront.yaml
@@ -2,12 +2,12 @@ showRunStrategy: false
default:
strategy:
runStrategy: 1
-name: VolcengineDeployToVOD
-title: 火山引擎-部署证书至VOD
-icon: svg:icon-volcengine
-group: volcengine
-desc: 部署至火山引擎视频点播(暂不可用)
-deprecated: 暂时缺少部署ssl接口
+name: AwsCNDeployToCloudFront
+title: AWS(国区)-部署证书到CloudFront
+desc: 部署证书到 AWS CloudFront
+icon: svg:icon-aws
+group: aws
+needPlus: false
input:
cert:
title: 域名证书
@@ -15,10 +15,8 @@ input:
component:
name: output-selector
from:
- - CertApply
- - CertApplyLego
- - CertApplyUpload
- - VolcengineUploadToCertCenter
+ - ':cert:'
+ - AwsUploadToACM
required: true
order: 0
certDomains:
@@ -35,34 +33,47 @@ input:
}
}
+ template: false
required: false
order: 0
+ region:
+ title: 区域
+ helper: 证书上传区域
+ component:
+ name: a-auto-complete
+ vModel: value
+ options:
+ - label: cn-north-1
+ value: cn-north-1
+ - label: cn-northwest-1
+ value: cn-northwest-1
+ required: true
+ order: 0
accessId:
title: Access授权
- helper: 火山引擎AccessKeyId、AccessKeySecret
+ helper: aws的授权
component:
name: access-selector
- type: volcengine
+ type: aws-cn
required: true
order: 0
- spaceName:
- title: 空间名称
- required: true
+ certName:
+ title: 证书名称
+ helper: 上传后将以此名称作为前缀备注
order: 0
- domainList:
- title: 点播域名
+ distributionIds:
+ title: 分配ID
component:
name: remote-select
vModel: value
mode: tags
type: plugin
- action: onGetDomainList
+ action: onGetDistributions
+ search: false
+ pager: false
watches:
- certDomains
- accessId
- - certDomains
- - accessId
- - spaceName
required: true
mergeScript: |2-
@@ -74,11 +85,9 @@ input:
},
}
- helper: |-
- 选择要部署证书的点播域名
- 需要先在域名管理页面进行证书中心访问授权(即点击去配置SSL证书)
+ helper: 请选择distributions id
order: 0
output: {}
type: builtIn
pluginType: deploy
-scriptFilePath: ../../../plugins/plugin-volcengine/plugins/plugin-deploy-to-vod.js
+scriptFilePath: ../../../plugins/plugin-aws-cn/plugins/plugin-deploy-to-cloudfront.js
diff --git a/packages/ui/certd-server/metadata/deploy_AwsDeployToCloudFront.yaml b/packages/ui/certd-server/metadata/deploy_AwsDeployToCloudFront.yaml
index e991c4262..e97b2d8be 100644
--- a/packages/ui/certd-server/metadata/deploy_AwsDeployToCloudFront.yaml
+++ b/packages/ui/certd-server/metadata/deploy_AwsDeployToCloudFront.yaml
@@ -7,7 +7,7 @@ title: AWS-部署证书到CloudFront
desc: 部署证书到 AWS CloudFront
icon: svg:icon-aws
group: aws
-needPlus: true
+needPlus: false
input:
cert:
title: 域名证书
@@ -15,9 +15,7 @@ input:
component:
name: output-selector
from:
- - CertApply
- - CertApplyLego
- - CertApplyUpload
+ - ':cert:'
- AwsUploadToACM
required: true
order: 0
@@ -35,6 +33,7 @@ input:
}
}
+ template: false
required: false
order: 0
region:
@@ -44,6 +43,16 @@ input:
name: a-auto-complete
vModel: value
options:
+ - label: '------中国区------'
+ value: cn
+ disabled: true
+ - label: 北京
+ value: cn-north-1
+ - label: 宁夏
+ value: cn-northwest-1
+ - label: '------海外-----'
+ value: out
+ disabled: true
- label: us-east-1
value: us-east-1
- label: us-east-2
@@ -122,6 +131,8 @@ input:
mode: tags
type: plugin
action: onGetDistributions
+ search: false
+ pager: false
watches:
- certDomains
- accessId
diff --git a/packages/ui/certd-server/metadata/deploy_AwsUploadToACM.yaml b/packages/ui/certd-server/metadata/deploy_AwsUploadToACM.yaml
index c77ea9a02..a9a9f304e 100644
--- a/packages/ui/certd-server/metadata/deploy_AwsUploadToACM.yaml
+++ b/packages/ui/certd-server/metadata/deploy_AwsUploadToACM.yaml
@@ -14,9 +14,7 @@ input:
component:
name: output-selector
from:
- - CertApply
- - CertApplyLego
- - CertApplyUpload
+ - ':cert:'
required: true
order: 0
accessId:
@@ -34,6 +32,16 @@ input:
name: a-auto-complete
vModel: value
options:
+ - label: '------中国区------'
+ value: cn
+ disabled: true
+ - label: 北京
+ value: cn-north-1
+ - label: 宁夏
+ value: cn-northwest-1
+ - label: '------海外-----'
+ value: out
+ disabled: true
- label: us-east-1
value: us-east-1
- label: us-east-2
diff --git a/packages/ui/certd-server/metadata/deploy_CacheFly.yaml b/packages/ui/certd-server/metadata/deploy_CacheFly.yaml
index f16fb3d97..2a46fbcba 100644
--- a/packages/ui/certd-server/metadata/deploy_CacheFly.yaml
+++ b/packages/ui/certd-server/metadata/deploy_CacheFly.yaml
@@ -14,9 +14,7 @@ input:
component:
name: output-selector
from:
- - CertApply
- - CertApplyLego
- - CertApplyUpload
+ - ':cert:'
required: true
order: 0
accessId:
diff --git a/packages/ui/certd-server/metadata/deploy_VolcengineDeployToLive.yaml b/packages/ui/certd-server/metadata/deploy_CmccDeployCertToCdn.yaml
similarity index 68%
rename from packages/ui/certd-server/metadata/deploy_VolcengineDeployToLive.yaml
rename to packages/ui/certd-server/metadata/deploy_CmccDeployCertToCdn.yaml
index 47b3574a8..b6a279e41 100644
--- a/packages/ui/certd-server/metadata/deploy_VolcengineDeployToLive.yaml
+++ b/packages/ui/certd-server/metadata/deploy_CmccDeployCertToCdn.yaml
@@ -2,11 +2,12 @@ showRunStrategy: false
default:
strategy:
runStrategy: 1
-name: VolcengineDeployToLive
-title: 火山引擎-部署证书至Live
-icon: svg:icon-volcengine
-group: volcengine
-desc: 部署至火山引擎视频直播
+name: CmccDeployCertToCdn
+title: 中国移动-部署证书到CDN
+desc: 中国移动自动部署证书到CDN
+icon: svg:icon-cmcc
+group: cdn
+needPlus: true
input:
cert:
title: 域名证书
@@ -14,10 +15,7 @@ input:
component:
name: output-selector
from:
- - CertApply
- - CertApplyLego
- - CertApplyUpload
- required: true
+ - ':cert:'
order: 0
certDomains:
title: 当前证书域名
@@ -33,29 +31,29 @@ input:
}
}
+ template: false
required: false
order: 0
accessId:
- title: Access授权
- helper: 火山引擎AccessKeyId、AccessKeySecret
+ title: 中国移动-授权
component:
name: access-selector
- type: volcengine
+ type: cmcc
required: true
order: 0
domainList:
- title: 直播域名
+ title: 加速域名
component:
name: remote-select
vModel: value
mode: tags
type: plugin
action: onGetDomainList
+ search: false
+ pager: false
watches:
- certDomains
- accessId
- - certDomains
- - accessId
required: true
mergeScript: |2-
@@ -67,9 +65,9 @@ input:
},
}
- helper: 选择要部署证书的直播域名
+ helper: 要更新的中国移动CDN域名
order: 0
output: {}
type: builtIn
pluginType: deploy
-scriptFilePath: ../../../plugins/plugin-volcengine/plugins/plugin-deploy-to-live.js
+scriptFilePath: ../../../plugins/plugin-cmcc/plugin-deploy-to-cdn.js
diff --git a/packages/ui/certd-server/metadata/deploy_CopyToLocal.yaml b/packages/ui/certd-server/metadata/deploy_CopyToLocal.yaml
index 423619a26..00351ee68 100644
--- a/packages/ui/certd-server/metadata/deploy_CopyToLocal.yaml
+++ b/packages/ui/certd-server/metadata/deploy_CopyToLocal.yaml
@@ -14,9 +14,7 @@ input:
component:
name: output-selector
from:
- - CertApply
- - CertApplyLego
- - CertApplyUpload
+ - ':cert:'
required: true
order: 0
certType:
@@ -166,4 +164,4 @@ output:
type: HostJksPath
type: builtIn
pluginType: deploy
-scriptFilePath: ../../../plugins/plugin-host/plugin/copy-to-local/index.js
+scriptFilePath: ../../../plugins/plugin-host/plugin/index.js
diff --git a/packages/ui/certd-server/metadata/deploy_CustomScript.yaml b/packages/ui/certd-server/metadata/deploy_CustomScript.yaml
index 6d55123a2..5bd37d91b 100644
--- a/packages/ui/certd-server/metadata/deploy_CustomScript.yaml
+++ b/packages/ui/certd-server/metadata/deploy_CustomScript.yaml
@@ -6,7 +6,8 @@ name: CustomScript
title: 自定义js脚本
icon: ri:javascript-line
desc: 【仅管理员】运行自定义js脚本执行
-group: other
+group: admin
+onlyAdmin: true
input:
script:
title: 脚本
@@ -24,12 +25,10 @@ input:
component:
name: output-selector
from:
- - CertApply
- - CertApplyLego
- - CertApplyUpload
+ - ':cert:'
required: false
order: 0
output: {}
type: builtIn
pluginType: deploy
-scriptFilePath: ../../../plugins/plugin-other/plugins/plugin-script.js
+scriptFilePath: ../../../plugins/plugin-admin/plugin-script.js
diff --git a/packages/ui/certd-server/metadata/deploy_DBBackupPlugin.yaml b/packages/ui/certd-server/metadata/deploy_DBBackupPlugin.yaml
index 5a18216a0..0ac509ba6 100644
--- a/packages/ui/certd-server/metadata/deploy_DBBackupPlugin.yaml
+++ b/packages/ui/certd-server/metadata/deploy_DBBackupPlugin.yaml
@@ -5,8 +5,9 @@ default:
name: DBBackupPlugin
title: 数据库备份
icon: lucide:database-backup
-desc: 仅支持备份SQLite数据库
-group: other
+desc: 【仅管理员可用】仅支持备份SQLite数据库
+group: admin
+onlyAdmin: true
needPlus: true
input:
backupMode:
@@ -124,4 +125,4 @@ input:
output: {}
type: builtIn
pluginType: deploy
-scriptFilePath: ../../../plugins/plugin-other/plugins/plugin-db-backup.js
+scriptFilePath: ../../../plugins/plugin-admin/plugin-db-backup.js
diff --git a/packages/ui/certd-server/metadata/deploy_DemoTest.yaml b/packages/ui/certd-server/metadata/deploy_DemoTest.yaml
index 057a1b717..4fc2a9bba 100644
--- a/packages/ui/certd-server/metadata/deploy_DemoTest.yaml
+++ b/packages/ui/certd-server/metadata/deploy_DemoTest.yaml
@@ -65,9 +65,7 @@ input:
component:
name: output-selector
from:
- - CertApply
- - CertApplyLego
- - CertApplyUpload
+ - ':cert:'
order: 0
certDomains:
title: 当前证书域名
@@ -83,6 +81,7 @@ input:
}
}
+ template: false
required: false
order: 0
accessId:
@@ -100,6 +99,8 @@ input:
mode: tags
type: plugin
action: onGetSiteList
+ search: false
+ pager: false
watches:
- certDomains
- accessId
diff --git a/packages/ui/certd-server/metadata/deploy_DeployCertToAliyunApiGateway.yaml b/packages/ui/certd-server/metadata/deploy_DeployCertToAliyunApiGateway.yaml
new file mode 100644
index 000000000..512cedd20
--- /dev/null
+++ b/packages/ui/certd-server/metadata/deploy_DeployCertToAliyunApiGateway.yaml
@@ -0,0 +1,137 @@
+showRunStrategy: false
+default:
+ strategy:
+ runStrategy: 1
+name: DeployCertToAliyunApiGateway
+title: 阿里云-部署证书至API网关
+icon: svg:icon-aliyun
+group: aliyun
+desc: 自动部署域名证书至阿里云API网关(APIGateway)
+input:
+ cert:
+ title: 域名证书
+ helper: 请选择前置任务输出的域名证书
+ component:
+ name: output-selector
+ from:
+ - ':cert:'
+ required: true
+ 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: Access授权
+ helper: 阿里云授权AccessKeyId、AccessKeySecret
+ component:
+ name: access-selector
+ type: aliyun
+ required: true
+ order: 0
+ certName:
+ title: 证书名称
+ helper: 上传后将以此名称作为前缀备注
+ order: 0
+ regionEndpoint:
+ title: 区域
+ component:
+ name: remote-auto-complete
+ vModel: value
+ mode: tags
+ type: plugin
+ action: onGetRegionList
+ search: false
+ pager: false
+ watches:
+ - certDomains
+ - accessId
+ - certDomains
+ - accessId
+ required: true
+ mergeScript: |2-
+
+ return {
+ component:{
+ form: ctx.compute(({form})=>{
+ return form
+ })
+ },
+ }
+
+ helper: 请选择区域
+ order: 0
+ groupId:
+ title: API分组
+ component:
+ name: remote-auto-complete
+ vModel: value
+ mode: tags
+ type: plugin
+ action: onGetGroupList
+ search: false
+ pager: false
+ watches:
+ - certDomains
+ - accessId
+ - regionEndpoint
+ - accessId
+ required: true
+ mergeScript: |2-
+
+ return {
+ component:{
+ form: ctx.compute(({form})=>{
+ return form
+ })
+ },
+ }
+
+ helper: 请选择API分组
+ order: 0
+ customDomains:
+ title: 绑定域名
+ component:
+ name: remote-select
+ vModel: value
+ mode: tags
+ type: plugin
+ action: onGetDomainList
+ search: false
+ pager: false
+ watches:
+ - certDomains
+ - accessId
+ - groupId
+ - regionEndpoint
+ - accessId
+ required: true
+ mergeScript: |2-
+
+ return {
+ component:{
+ form: ctx.compute(({form})=>{
+ return form
+ })
+ },
+ }
+
+ helper: 在API分组上配置的绑定域名
+ order: 0
+output: {}
+type: builtIn
+pluginType: deploy
+scriptFilePath: ../../../plugins/plugin-aliyun/plugin/index.js
diff --git a/packages/ui/certd-server/metadata/deploy_DeployCertToAliyunApig.yaml b/packages/ui/certd-server/metadata/deploy_DeployCertToAliyunApig.yaml
new file mode 100644
index 000000000..9853be576
--- /dev/null
+++ b/packages/ui/certd-server/metadata/deploy_DeployCertToAliyunApig.yaml
@@ -0,0 +1,143 @@
+showRunStrategy: false
+default:
+ strategy:
+ runStrategy: 1
+name: DeployCertToAliyunApig
+title: 阿里云-部署至云原生API网关/AI网关
+icon: svg:icon-aliyun
+group: aliyun
+desc: 自动部署域名证书至云原生API网关、AI网关
+input:
+ cert:
+ title: 域名证书
+ helper: 请选择前置任务输出的域名证书
+ component:
+ name: output-selector
+ from:
+ - ':cert:'
+ - uploadCertToAliyun
+ required: true
+ 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: Access授权
+ helper: 阿里云授权
+ component:
+ name: access-selector
+ type: aliyun
+ required: true
+ order: 0
+ regionEndpoint:
+ title: 区域
+ component:
+ name: remote-auto-complete
+ vModel: value
+ mode: tags
+ type: plugin
+ action: onGetRegionList
+ search: false
+ pager: false
+ watches:
+ - certDomains
+ - accessId
+ - certDomains
+ - accessId
+ required: true
+ mergeScript: |2-
+
+ return {
+ component:{
+ form: ctx.compute(({form})=>{
+ return form
+ })
+ },
+ }
+
+ helper: 请选择区域
+ order: 0
+ gatewayType:
+ title: 网关类型
+ component:
+ name: a-select
+ vModel: value
+ options:
+ - value: AI
+ label: AI
+ - value: API
+ label: API
+ required: true
+ order: 0
+ domainList:
+ title: 绑定域名
+ component:
+ name: remote-select
+ vModel: value
+ mode: tags
+ type: plugin
+ action: onGetDomainList
+ search: false
+ pager: false
+ watches:
+ - certDomains
+ - accessId
+ - region
+ - accessId
+ - gatewayType
+ required: true
+ mergeScript: |2-
+
+ return {
+ component:{
+ form: ctx.compute(({form})=>{
+ return form
+ })
+ },
+ }
+
+ helper: 请选择域名
+ order: 0
+ forceHttps:
+ title: 强制HTTPS
+ component:
+ name: a-select
+ vModel: value
+ options:
+ - value: true
+ label: 强制HTTPS
+ - value: false
+ label: 不强制HTTPS
+ required: true
+ order: 0
+ casRegion:
+ title: 证书服务接入点
+ helper: 不会选就按默认
+ value: cn-hangzhou
+ component:
+ name: a-select
+ options:
+ - value: cn-hangzhou
+ label: 中国大陆
+ - value: ap-southeast-1
+ label: 新加坡
+ required: true
+ order: 0
+output: {}
+type: builtIn
+pluginType: deploy
+scriptFilePath: ../../../plugins/plugin-aliyun/plugin/index.js
diff --git a/packages/ui/certd-server/metadata/deploy_DeployCertToAliyunCDN.yaml b/packages/ui/certd-server/metadata/deploy_DeployCertToAliyunCDN.yaml
index a1959e3fc..dcd854b3b 100644
--- a/packages/ui/certd-server/metadata/deploy_DeployCertToAliyunCDN.yaml
+++ b/packages/ui/certd-server/metadata/deploy_DeployCertToAliyunCDN.yaml
@@ -29,10 +29,9 @@ input:
component:
name: output-selector
from:
- - CertApply
- - CertApplyLego
- - CertApplyUpload
+ - ':cert:'
- uploadCertToAliyun
+ template: false
required: true
order: 0
certDomains:
@@ -49,6 +48,7 @@ input:
}
}
+ template: false
required: false
order: 0
accessId:
@@ -68,6 +68,8 @@ input:
type: plugin
typeName: DeployCertToAliyunCDN
action: onGetDomainList
+ search: false
+ pager: false
watches:
- certDomains
- accessId
diff --git a/packages/ui/certd-server/metadata/deploy_DeployCertToAliyunDCDN.yaml b/packages/ui/certd-server/metadata/deploy_DeployCertToAliyunDCDN.yaml
index 95d6c1523..4bf73d4a8 100644
--- a/packages/ui/certd-server/metadata/deploy_DeployCertToAliyunDCDN.yaml
+++ b/packages/ui/certd-server/metadata/deploy_DeployCertToAliyunDCDN.yaml
@@ -14,9 +14,7 @@ input:
component:
name: output-selector
from:
- - CertApply
- - CertApplyLego
- - CertApplyUpload
+ - ':cert:'
- uploadCertToAliyun
required: true
order: 0
@@ -34,6 +32,7 @@ input:
}
}
+ template: false
required: false
order: 0
accessId:
@@ -44,15 +43,38 @@ input:
type: aliyun
required: true
order: 0
- domainName:
- title: DCDN加速域名
- helper: 你在阿里云上配置的CDN加速域名,比如:certd.docmirror.cn
- required: true
- order: 0
certName:
title: 证书名称
helper: 上传后将以此名称作为前缀备注
order: 0
+ domainName:
+ title: DCDN加速域名
+ component:
+ name: remote-select
+ vModel: value
+ mode: tags
+ type: plugin
+ action: onGetDomainList
+ search: false
+ pager: false
+ watches:
+ - certDomains
+ - accessId
+ - certDomains
+ - accessId
+ required: true
+ mergeScript: |2-
+
+ return {
+ component:{
+ form: ctx.compute(({form})=>{
+ return form
+ })
+ },
+ }
+
+ helper: 你在阿里云上配置的DCDN加速域名,比如:certd.docmirror.cn
+ order: 0
output: {}
type: builtIn
pluginType: deploy
diff --git a/packages/ui/certd-server/metadata/deploy_DeployCertToAliyunOSS.yaml b/packages/ui/certd-server/metadata/deploy_DeployCertToAliyunOSS.yaml
index e1665f8fd..17a04e479 100644
--- a/packages/ui/certd-server/metadata/deploy_DeployCertToAliyunOSS.yaml
+++ b/packages/ui/certd-server/metadata/deploy_DeployCertToAliyunOSS.yaml
@@ -6,8 +6,58 @@ name: DeployCertToAliyunOSS
title: 阿里云-部署证书至OSS
icon: svg:icon-aliyun
group: aliyun
-desc: 自动部署域名证书至阿里云OSS
+desc: 部署域名证书至阿里云OSS自定义域名,不是上传到阿里云oss
input:
+ casRegion:
+ title: 证书服务接入点
+ helper: 不会选就按默认
+ value: cn-hangzhou
+ component:
+ name: a-select
+ options:
+ - value: cn-hangzhou
+ label: 中国大陆
+ - value: ap-southeast-1
+ label: 新加坡
+ - value: eu-central-1
+ label: 德国(法兰克福)
+ required: true
+ order: -99
+ accessId:
+ title: Access授权
+ helper: 阿里云授权AccessKeyId、AccessKeySecret
+ component:
+ name: access-selector
+ type: aliyun
+ required: true
+ order: -98
+ cert:
+ title: 域名证书
+ helper: 请选择前置任务输出的域名证书
+ component:
+ name: output-selector
+ from:
+ - ':cert:'
+ - uploadCertToAliyun
+ required: true
+ 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
region:
title: 大区
component:
@@ -77,36 +127,51 @@ input:
bucket:
title: Bucket
helper: 存储桶名称
+ component:
+ name: remote-auto-complete
+ vModel: value
+ type: plugin
+ action: onGetBucketList
+ search: false
+ pager: false
+ watches:
+ - accessId
+ - region
required: true
order: 0
domainName:
title: 绑定的域名
- helper: 你在阿里云OSS上绑定的域名,比如:certd.docmirror.cn
+ component:
+ name: remote-select
+ vModel: value
+ mode: tags
+ type: plugin
+ action: onGetDomainList
+ search: false
+ pager: false
+ watches:
+ - certDomains
+ - accessId
+ - certDomains
+ - accessId
+ - bucket
required: true
+ mergeScript: |2-
+
+ return {
+ component:{
+ form: ctx.compute(({form})=>{
+ return form
+ })
+ },
+ }
+
+ helper: 你在阿里云OSS上绑定的域名,比如:certd.docmirror.cn
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: {}
type: builtIn
pluginType: deploy
diff --git a/packages/ui/certd-server/metadata/deploy_DeployCertToTencentAll.yaml b/packages/ui/certd-server/metadata/deploy_DeployCertToTencentAll.yaml
deleted file mode 100644
index 1544efcc2..000000000
--- a/packages/ui/certd-server/metadata/deploy_DeployCertToTencentAll.yaml
+++ /dev/null
@@ -1,90 +0,0 @@
-showRunStrategy: false
-default:
- strategy:
- runStrategy: 1
-name: DeployCertToTencentAll
-title: 腾讯云-部署证书到任意云资源
-needPlus: false
-icon: svg:icon-tencentcloud
-group: tencent
-desc: 支持负载均衡、CDN、DDoS、直播、点播、Web应用防火墙、API网关、TEO、容器服务、对象存储、轻应用服务器、云原生微服务、云开发
-input:
- accessId:
- title: Access授权
- helper: access授权
- component:
- name: access-selector
- type: tencent
- required: true
- order: 0
- tencentCertId:
- title: 证书
- helper: 请选择"证书申请任务"或“上传证书到腾讯云”前置任务的输出
- component:
- name: output-selector
- from:
- - CertApply
- - CertApplyLego
- - CertApplyUpload
- - UploadCertToTencent
- required: true
- order: 0
- resourceType:
- title: 资源类型
- component:
- name: a-select
- vModel: value
- allowClear: true
- options:
- - value: clb
- label: 负载均衡
- - value: cdn
- label: CDN
- - value: ddos
- label: DDoS
- - value: live
- label: 直播
- - value: vod
- label: 点播
- - value: waf
- label: Web应用防火墙
- - value: apigateway
- label: API网关
- - value: teo
- label: TEO
- - value: tke
- label: 容器服务
- - value: cos
- label: 对象存储
- - value: lighthouse
- label: 轻应用服务器
- - value: tse
- label: 云原生微服务
- - value: tcb
- label: 云开发
- helper: ''
- required: true
- order: 0
- region:
- title: Region
- component:
- name: a-input
- vModel: value
- allowClear: true
- helper: >-
- 当云资源类型传入clb、waf、apigateway、cos、lighthouse、tke、tse、tcb
- 时,公共参数Region必传。[参考文档](https://cloud.tencent.com/document/product/400/91667)
- order: 0
- instanceIdList:
- title: 云资源实例Id列表
- component:
- name: a-select
- vModel: value
- open: false
- mode: tags
- helper: '[参考文档](https://cloud.tencent.com/document/product/400/91667)'
- order: 0
-output: {}
-type: builtIn
-pluginType: deploy
-scriptFilePath: ../../../plugins/plugin-tencent/plugin/index.js
diff --git a/packages/ui/certd-server/metadata/deploy_DeployCertToTencentCDN.yaml b/packages/ui/certd-server/metadata/deploy_DeployCertToTencentCDN.yaml
deleted file mode 100644
index 6bfc252d2..000000000
--- a/packages/ui/certd-server/metadata/deploy_DeployCertToTencentCDN.yaml
+++ /dev/null
@@ -1,43 +0,0 @@
-showRunStrategy: false
-default:
- strategy:
- runStrategy: 1
-name: DeployCertToTencentCDN
-title: 腾讯云-部署到CDN(废弃)
-icon: svg:icon-tencentcloud
-group: tencent
-desc: 已废弃,请使用v2版
-input:
- cert:
- title: 域名证书
- helper: 请选择前置任务输出的域名证书
- component:
- name: output-selector
- from:
- - CertApply
- - CertApplyLego
- - CertApplyUpload
- required: true
- order: 0
- accessId:
- title: Access提供者
- helper: access 授权
- component:
- name: access-selector
- type: tencent
- required: true
- order: 0
- certName:
- title: 证书名称
- helper: 证书上传后将以此参数作为名称前缀
- order: 0
- domainName:
- title: cdn加速域名
- rules:
- - required: true
- message: 该项必填
- order: 0
-output: {}
-type: builtIn
-pluginType: deploy
-scriptFilePath: ../../../plugins/plugin-tencent/plugin/index.js
diff --git a/packages/ui/certd-server/metadata/deploy_DeployCertToTencentCLB.yaml b/packages/ui/certd-server/metadata/deploy_DeployCertToTencentCLB.yaml
deleted file mode 100644
index cdc86fc80..000000000
--- a/packages/ui/certd-server/metadata/deploy_DeployCertToTencentCLB.yaml
+++ /dev/null
@@ -1,82 +0,0 @@
-showRunStrategy: false
-default:
- strategy:
- runStrategy: 1
-name: DeployCertToTencentCLB
-title: 腾讯云-部署到CLB
-icon: svg:icon-tencentcloud
-group: tencent
-desc: 暂时只支持单向认证证书,暂时只支持通用负载均衡
-input:
- region:
- title: 大区
- component:
- name: a-auto-complete
- vModel: value
- options:
- - value: ap-guangzhou
- - value: ap-beijing
- - value: ap-chengdu
- - value: ap-chongqing
- - value: ap-hongkong
- - value: ap-jakarta
- - value: ap-mumbai
- - value: ap-nanjing
- - value: ap-seoul
- - value: ap-shanghai
- - value: ap-shanghai-fsi
- - value: ap-shenzhen-fsi
- - value: ap-singapore
- - value: ap-tokyo
- - value: eu-frankfurt
- - value: na-ashburn
- - value: na-siliconvalley
- - value: na-toronto
- - value: sa-saopaulo
- required: true
- order: 0
- certName:
- title: 证书名称前缀
- order: 0
- loadBalancerId:
- title: 负载均衡ID
- helper: 如果没有配置,则根据域名匹配负载均衡下的监听器(根据域名匹配时暂时只支持前100个)
- required: true
- order: 0
- listenerId:
- title: 监听器ID
- required: true
- order: 0
- domain:
- title: 域名
- required: false
- component:
- name: a-select
- vModel: value
- open: false
- mode: tags
- helper: 如果开启了sni,则此项必须填写,未开启,则不要填写
- order: 0
- cert:
- title: 域名证书
- helper: 请选择前置任务输出的域名证书
- component:
- name: output-selector
- from:
- - CertApply
- - CertApplyLego
- - CertApplyUpload
- required: true
- order: 0
- accessId:
- title: Access提供者
- helper: access授权
- component:
- name: access-selector
- type: tencent
- required: true
- order: 0
-output: {}
-type: builtIn
-pluginType: deploy
-scriptFilePath: ../../../plugins/plugin-tencent/plugin/index.js
diff --git a/packages/ui/certd-server/metadata/deploy_DeployCertToTencentCosPlugin.yaml b/packages/ui/certd-server/metadata/deploy_DeployCertToTencentCosPlugin.yaml
deleted file mode 100644
index 9ba3aef9f..000000000
--- a/packages/ui/certd-server/metadata/deploy_DeployCertToTencentCosPlugin.yaml
+++ /dev/null
@@ -1,122 +0,0 @@
-showRunStrategy: false
-default:
- strategy:
- runStrategy: 1
-name: DeployCertToTencentCosPlugin
-title: 腾讯云-部署证书到COS
-needPlus: false
-icon: svg:icon-tencentcloud
-group: tencent
-desc: 部署到腾讯云COS源站域名证书【注意:很不稳定,需要重试很多次偶尔才能成功一次】
-input:
- accessId:
- title: Access授权
- helper: access授权
- component:
- name: access-selector
- type: tencent
- required: true
- order: 0
- bucket:
- title: 存储桶名称
- helper: 请输入存储桶名称
- order: 0
- region:
- title: 所在地域
- helper: 存储桶所在地域
- component:
- name: a-auto-complete
- vModel: value
- options:
- - value: ''
- label: '--------中国大陆地区-------'
- disabled: true
- - value: ap-beijing-1
- label: 北京1区
- - value: ap-beijing
- label: 北京
- - value: ap-nanjing
- label: 南京
- - value: ap-shanghai
- label: 上海
- - value: ap-guangzhou
- label: 广州
- - value: ap-chengdu
- label: 成都
- - value: ap-chongqing
- label: 重庆
- - value: ap-shenzhen-fsi
- label: 深圳金融
- - value: ap-shanghai-fsi
- label: 上海金融
- - value: ap-beijing-fsi
- label: 北京金融
- - value: ''
- label: '--------中国香港及境外-------'
- disabled: true
- - value: ap-hongkong
- label: 中国香港
- - value: ap-singapore
- label: 新加坡
- - value: ap-mumbai
- label: 孟买
- - value: ap-jakarta
- label: 雅加达
- - value: ap-seoul
- label: 首尔
- - value: ap-bangkok
- label: 曼谷
- - value: ap-tokyo
- label: 东京
- - value: na-siliconvalley
- label: 硅谷
- - value: na-ashburn
- label: 弗吉尼亚
- - value: sa-saopaulo
- label: 圣保罗
- - value: eu-frankfurt
- label: 法兰克福
- order: 0
- domains:
- title: COS域名
- component:
- name: remote-select
- vModel: value
- mode: tags
- type: plugin
- typeName: DeployCertToTencentCosPlugin
- action: onGetDomainList
- watches:
- - certDomains
- - accessId
- - bucket
- - region
- required: true
- mergeScript: |2-
-
- return {
- component:{
- form: ctx.compute(({form})=>{
- return form
- })
- },
- }
-
- helper: 请选择域名
- order: 0
- cert:
- title: 域名证书
- helper: 请选择前置任务输出的域名证书,或者选择前置任务“上传证书到腾讯云”任务的证书ID
- component:
- name: output-selector
- from:
- - CertApply
- - CertApplyLego
- - CertApplyUpload
- - UploadCertToTencent
- required: true
- order: 0
-output: {}
-type: builtIn
-pluginType: deploy
-scriptFilePath: ../../../plugins/plugin-tencent/plugin/index.js
diff --git a/packages/ui/certd-server/metadata/deploy_DeployCertToTencentEO.yaml b/packages/ui/certd-server/metadata/deploy_DeployCertToTencentEO.yaml
deleted file mode 100644
index c6a712a3e..000000000
--- a/packages/ui/certd-server/metadata/deploy_DeployCertToTencentEO.yaml
+++ /dev/null
@@ -1,51 +0,0 @@
-showRunStrategy: false
-default:
- strategy:
- runStrategy: 1
-name: DeployCertToTencentEO
-title: 腾讯云-部署到腾讯云EO
-icon: svg:icon-tencentcloud
-desc: 腾讯云边缘安全加速平台EO,必须配置上传证书到腾讯云任务
-group: tencent
-input:
- certId:
- title: 已上传证书ID
- helper: 请选择前置任务上传到腾讯云的证书
- component:
- name: output-selector
- from: UploadCertToTencent
- required: true
- order: 0
- accessId:
- title: Access提供者
- helper: access 授权
- component:
- name: access-selector
- type: tencent
- required: true
- order: 0
- zoneId:
- title: 站点ID
- helper: 类似于zone-xxxx的字符串,在站点概览页面左上角,或者,站点列表页面站点名称下方
- required: true
- order: 0
- certName:
- title: 证书名称
- helper: 证书上传后将以此参数作为名称前缀
- order: 0
- domainNames:
- title: cdn加速域名
- component:
- name: a-select
- vModel: value
- mode: tags
- open: false
- helper: 支持多个域名
- rules:
- - required: true
- message: 该项必填
- order: 0
-output: {}
-type: builtIn
-pluginType: deploy
-scriptFilePath: ../../../plugins/plugin-tencent/plugin/index.js
diff --git a/packages/ui/certd-server/metadata/deploy_DeployCertToTencentTKEIngress.yaml b/packages/ui/certd-server/metadata/deploy_DeployCertToTencentTKEIngress.yaml
deleted file mode 100644
index 17deeddff..000000000
--- a/packages/ui/certd-server/metadata/deploy_DeployCertToTencentTKEIngress.yaml
+++ /dev/null
@@ -1,96 +0,0 @@
-showRunStrategy: false
-default:
- strategy:
- runStrategy: 1
-name: DeployCertToTencentTKEIngress
-title: 腾讯云-部署到TKE-ingress
-needPlus: true
-icon: svg:icon-tencentcloud
-group: tencent
-desc: serverless集群请使用K8S部署插件;Qcloud类型需要【上传到腾讯云】作为前置任务;ApiServer未开启外网访问则需要做域名的内网IP映射
-input:
- region:
- title: 大区
- value: ap-guangzhou
- required: true
- order: 0
- clusterId:
- title: 集群ID
- required: true
- desc: 例如:cls-6lbj1vee
- request: true
- order: 0
- namespace:
- title: 集群namespace
- value: default
- required: true
- order: 0
- secretName:
- title: 证书的secret名称
- required: true
- order: 0
- ingressName:
- title: ingress名称
- required: true
- order: 0
- ingressClass:
- title: ingress类型
- component:
- name: a-auto-complete
- vModel: value
- options:
- - value: qcloud
- - value: nginx
- helper: 可选 qcloud / nginx
- order: 0
- clusterDomain:
- title: 集群域名
- helper: 可不填,默认为:[clusterId].ccs.tencent-cloud.com
- order: 0
- accessId:
- title: Access授权
- helper: access授权
- component:
- name: access-selector
- type: tencent
- required: true
- order: 0
- tencentCertId:
- title: 腾讯云证书id
- helper: 请选择“上传证书到腾讯云”前置任务的输出
- component:
- name: output-selector
- from: UploadCertToTencent
- mergeScript: |2-
-
- return {
- show: ctx.compute(({form})=>{
- return form.ingressClass === "qcloud"
- })
- }
-
- required: true
- order: 0
- cert:
- title: 域名证书
- helper: 请选择前置任务输出的域名证书
- component:
- name: output-selector
- from:
- - CertApply
- - CertApplyLego
- - CertApplyUpload
- mergeScript: |2-
-
- return {
- show: ctx.compute(({form})=>{
- return form.ingressClass === "nginx"
- })
- }
-
- required: true
- order: 0
-output: {}
-type: builtIn
-pluginType: deploy
-scriptFilePath: ../../../plugins/plugin-tencent/plugin/index.js
diff --git a/packages/ui/certd-server/metadata/deploy_DogeCloudDeployToCDN.yaml b/packages/ui/certd-server/metadata/deploy_DogeCloudDeployToCDN.yaml
index 79402962d..20b6bef07 100644
--- a/packages/ui/certd-server/metadata/deploy_DogeCloudDeployToCDN.yaml
+++ b/packages/ui/certd-server/metadata/deploy_DogeCloudDeployToCDN.yaml
@@ -7,22 +7,32 @@ title: 多吉云-部署到多吉云CDN
icon: svg:icon-dogecloud
group: cdn
input:
- domain:
- title: 域名
- helper: CDN域名
- required: true
- order: 0
cert:
title: 证书
helper: 请选择前置任务输出的域名证书
component:
name: output-selector
from:
- - CertApply
- - CertApplyLego
- - CertApplyUpload
+ - ':cert:'
required: true
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: 多吉云授权
helper: 多吉云AccessKey
@@ -33,6 +43,32 @@ input:
- required: true
message: 此项必填
order: 0
+ domain:
+ title: CDN域名
+ 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: 请选择CDN域名,可以选择多个,一次性部署
+ order: 0
ignoreDeployNullCode:
title: 忽略部署接口报错
helper: 当该域名部署后报错,但是实际上已经部署成功时,可以勾选
diff --git a/packages/ui/certd-server/metadata/deploy_DokployRefreshCert.yaml b/packages/ui/certd-server/metadata/deploy_DokployRefreshCert.yaml
new file mode 100644
index 000000000..84f2c72d3
--- /dev/null
+++ b/packages/ui/certd-server/metadata/deploy_DokployRefreshCert.yaml
@@ -0,0 +1,73 @@
+showRunStrategy: false
+default:
+ strategy:
+ runStrategy: 1
+name: DokployRefreshCert
+title: Dokploy-部署server证书
+desc: 自动更新Dokploy server证书
+icon: svg:icon-lucky
+group: panel
+needPlus: true
+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: Dokploy授权
+ component:
+ name: access-selector
+ type: dokploy
+ required: true
+ order: 0
+ serverList:
+ title: 证书名称
+ component:
+ name: remote-select
+ vModel: value
+ mode: tags
+ type: plugin
+ action: onGetServerList
+ search: false
+ pager: false
+ watches:
+ - certDomains
+ - accessId
+ required: true
+ mergeScript: |2-
+
+ return {
+ component:{
+ form: ctx.compute(({form})=>{
+ return form
+ })
+ },
+ }
+
+ helper: 要更新的证书名称,如果这里没有,请先给手动绑定一次证书
+ order: 0
+output: {}
+type: builtIn
+pluginType: deploy
+scriptFilePath: ../../../plugins/plugin-dokploy/plugins/plugin-refresh-cert.js
diff --git a/packages/ui/certd-server/metadata/deploy_FarcdnRefreshCert.yaml b/packages/ui/certd-server/metadata/deploy_FarcdnRefreshCert.yaml
new file mode 100644
index 000000000..4b7ab744f
--- /dev/null
+++ b/packages/ui/certd-server/metadata/deploy_FarcdnRefreshCert.yaml
@@ -0,0 +1,73 @@
+showRunStrategy: false
+default:
+ strategy:
+ runStrategy: 1
+name: FarcdnRefreshCert
+title: farcdn-更新证书
+desc: www.farcdn.net
+icon: svg:icon-lucky
+group: cdn
+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: Farcdn授权
+ component:
+ name: access-selector
+ type: farcdn
+ required: true
+ order: 0
+ certList:
+ title: 证书Id
+ 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: 要更新的Farcdn证书id
+ order: 0
+output: {}
+type: builtIn
+pluginType: deploy
+scriptFilePath: ../../../plugins/plugin-farcdn/plugins/plugin-refresh-cert.js
diff --git a/packages/ui/certd-server/metadata/deploy_FlexCDNRefreshCert.yaml b/packages/ui/certd-server/metadata/deploy_FlexCDNRefreshCert.yaml
new file mode 100644
index 000000000..882b1cd48
--- /dev/null
+++ b/packages/ui/certd-server/metadata/deploy_FlexCDNRefreshCert.yaml
@@ -0,0 +1,72 @@
+showRunStrategy: false
+default:
+ strategy:
+ runStrategy: 1
+name: FlexCDNRefreshCert
+title: FlexCDN-更新证书
+icon: svg:icon-lucky
+group: cdn
+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: FlexCDN授权
+ component:
+ name: access-selector
+ type: flexcdn
+ required: true
+ order: 0
+ certList:
+ title: 证书Id
+ 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: 要更新的Flex证书id
+ order: 0
+output: {}
+type: builtIn
+pluginType: deploy
+scriptFilePath: ../../../plugins/plugin-flex/plugins/plugin-refresh-cert.js
diff --git a/packages/ui/certd-server/metadata/deploy_FnOSDeployToNAS.yaml b/packages/ui/certd-server/metadata/deploy_FnOSDeployToNAS.yaml
new file mode 100644
index 000000000..b59ec37a7
--- /dev/null
+++ b/packages/ui/certd-server/metadata/deploy_FnOSDeployToNAS.yaml
@@ -0,0 +1,78 @@
+showRunStrategy: false
+default:
+ strategy:
+ runStrategy: 1
+name: FnOSDeployToNAS
+title: 飞牛NAS-部署证书
+icon: svg:icon-fnos
+group: panel
+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: 飞牛SSH授权
+ component:
+ name: access-selector
+ type: ssh
+ helper: |-
+ 请先配置sudo免密:
+ sudo visudo
+ #在文件最后一行增加以下内容,需要将username替换成自己的用户名
+ username ALL=(ALL) NOPASSWD: NOPASSWD: ALL
+ ctrl+x 保存退出
+ required: true
+ order: 0
+ certList:
+ title: 证书Id
+ 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: 面板证书请选择fnOS,其他FTP、webdav等证书请选择已使用,可多选(如果证书域名都匹配的话)
+ order: 0
+output: {}
+type: builtIn
+pluginType: deploy
+scriptFilePath: ../../../plugins/plugin-fnos/index.js
diff --git a/packages/ui/certd-server/metadata/deploy_Gcoreflush.yaml b/packages/ui/certd-server/metadata/deploy_Gcoreflush.yaml
index 745b583a0..b89f8dd77 100644
--- a/packages/ui/certd-server/metadata/deploy_Gcoreflush.yaml
+++ b/packages/ui/certd-server/metadata/deploy_Gcoreflush.yaml
@@ -14,6 +14,7 @@ input:
order: 0
ssl_id:
title: 证书ID
+ required: true
order: 0
cert:
title: 域名证书
@@ -21,9 +22,7 @@ input:
component:
name: output-selector
from:
- - CertApply
- - CertApplyLego
- - CertApplyUpload
+ - ':cert:'
required: true
order: 0
accessId:
diff --git a/packages/ui/certd-server/metadata/deploy_Gcoreupload.yaml b/packages/ui/certd-server/metadata/deploy_Gcoreupload.yaml
index 030a10e6d..d81552af7 100644
--- a/packages/ui/certd-server/metadata/deploy_Gcoreupload.yaml
+++ b/packages/ui/certd-server/metadata/deploy_Gcoreupload.yaml
@@ -18,9 +18,7 @@ input:
component:
name: output-selector
from:
- - CertApply
- - CertApplyLego
- - CertApplyUpload
+ - ':cert:'
required: true
order: 0
accessId:
diff --git a/packages/ui/certd-server/metadata/deploy_GithubCheckRelease.yaml b/packages/ui/certd-server/metadata/deploy_GithubCheckRelease.yaml
new file mode 100644
index 000000000..c37b89c9f
--- /dev/null
+++ b/packages/ui/certd-server/metadata/deploy_GithubCheckRelease.yaml
@@ -0,0 +1,80 @@
+showRunStrategy: false
+default:
+ strategy:
+ runStrategy: 0
+name: GithubCheckRelease
+title: Github-检查Release版本
+desc: 检查最新Release版本并推送消息
+icon: ion:logo-github
+group: other
+needPlus: false
+input:
+ accessId:
+ title: Github授权
+ component:
+ name: access-selector
+ type: github
+ required: true
+ order: 0
+ repoName:
+ title: 仓库名称
+ helper: owner/name,比如 certd/certd
+ required: true
+ order: 0
+ notificationIds:
+ title: 通知渠道
+ component:
+ name: notification-selector
+ select:
+ mode: tags
+ required: false
+ order: 0
+ sshAccessId:
+ title: 主机登录配置
+ helper: 登录
+ component:
+ name: access-selector
+ type: ssh
+ required: false
+ order: 0
+ script:
+ title: shell脚本命令
+ component:
+ name: a-textarea
+ vModel: value
+ rows: 6
+ placeholder: >-
+
+ # 拉取最新镜像
+
+ docker pull registry.cn-shenzhen.aliyuncs.com/handsfree/certd:latest
+
+ # 升级容器命令, 替换成你自己的实际部署位置及更新命令
+
+ export RESTART_CERT='sleep 10; cd ~/deploy/certd/ ; docker compose down;
+ docker compose up -d'
+
+ # 构造一个脚本10s后在后台执行,避免容器销毁时执行太快,导致流水线任务无法结束
+
+ nohup sh -c '$RESTART_CERT' >/dev/null 2>&1 & echo '10秒后重启' && exit
+ helper: >
+ 有新版本后执行命令,比如:拉取最新版镜像,然后重建容器
+
+ 注意:自己升级自己需要使用nohup配合sleep
+
+ 自动升级命令示例:
+
+ docker pull registry.cn-shenzhen.aliyuncs.com/handsfree/certd:latest
+
+ export RESTART_CERT='sleep 10; cd ~/deploy/certd/ ; docker compose down;
+ docker compose up -d'
+
+ nohup sh -c '$RESTART_CERT' >/dev/null 2>&1 & echo '10秒后重启' && exit
+ required: false
+ order: 0
+output:
+ lastVersion:
+ title: 最后版本
+type: builtIn
+pluginType: deploy
+scriptFilePath: ../../../plugins/plugin-github/plugins/plugin-check-release.js
diff --git a/packages/ui/certd-server/metadata/deploy_GoEdgeRefreshCert.yaml b/packages/ui/certd-server/metadata/deploy_GoEdgeRefreshCert.yaml
new file mode 100644
index 000000000..f53b0345b
--- /dev/null
+++ b/packages/ui/certd-server/metadata/deploy_GoEdgeRefreshCert.yaml
@@ -0,0 +1,83 @@
+showRunStrategy: false
+default:
+ strategy:
+ runStrategy: 1
+name: GoEdgeRefreshCert
+title: GoEdge-更新证书
+desc: GoEdge
+icon: fa-solid:leaf:#6C6BF6
+group: cdn
+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: GoEdge授权
+ component:
+ name: access-selector
+ type: goedge
+ required: true
+ order: 0
+ userId:
+ title: 用户id
+ component:
+ name: a-input-number
+ vModel: value
+ helper: |-
+ 用于查询用户证书,点击用户详情->浏览器地址中userId值,如:/users/user?userId=1
+ 如果为空,则查询管理员证书
+ required: false
+ order: 0
+ certList:
+ title: 证书Id
+ component:
+ name: remote-select
+ vModel: value
+ mode: tags
+ type: plugin
+ action: onGetCertList
+ search: true
+ pager: true
+ watches:
+ - certDomains
+ - accessId
+ required: true
+ mergeScript: |2-
+
+ return {
+ component:{
+ form: ctx.compute(({form})=>{
+ return form
+ })
+ },
+ }
+
+ helper: 要更新的GoEdge证书id
+ order: 0
+output: {}
+type: builtIn
+pluginType: deploy
+scriptFilePath: ../../../plugins/plugin-goedge/plugins/plugin-refresh-cert.js
diff --git a/packages/ui/certd-server/metadata/deploy_HauweiDeployCertToCDN.yaml b/packages/ui/certd-server/metadata/deploy_HauweiDeployCertToCDN.yaml
index 2fe891cc0..0c7cea840 100644
--- a/packages/ui/certd-server/metadata/deploy_HauweiDeployCertToCDN.yaml
+++ b/packages/ui/certd-server/metadata/deploy_HauweiDeployCertToCDN.yaml
@@ -17,9 +17,7 @@ input:
component:
name: output-selector
from:
- - CertApply
- - CertApplyLego
- - CertApplyUpload
+ - ':cert:'
- HauweiUploadToCCM
required: true
order: 0
@@ -37,8 +35,15 @@ input:
}
}
+ template: false
required: false
order: 0
+ enterpriseProjectId:
+ title: 企业项目ID
+ helper: 华为云子账号必填,"all"表示查询所有项目
+ required: false
+ value: all
+ order: 0
accessId:
title: Access授权
helper: 华为云授权AccessKeyId、AccessKeySecret
@@ -56,6 +61,8 @@ input:
type: plugin
typeName: HauweiDeployCertToCDN
action: onGetDomainList
+ search: false
+ pager: false
watches:
- certDomains
- accessId
@@ -75,4 +82,4 @@ input:
output: {}
type: builtIn
pluginType: deploy
-scriptFilePath: ../../../plugins/plugin-huawei/plugins/deploy-to-cdn/index.js
+scriptFilePath: ../../../plugins/plugin-huawei/plugins/index.js
diff --git a/packages/ui/certd-server/metadata/deploy_VolcengineDeployToALB.yaml b/packages/ui/certd-server/metadata/deploy_HauweiDeployCertToOBS.yaml
similarity index 51%
rename from packages/ui/certd-server/metadata/deploy_VolcengineDeployToALB.yaml
rename to packages/ui/certd-server/metadata/deploy_HauweiDeployCertToOBS.yaml
index 6bb210f58..cb7a27796 100644
--- a/packages/ui/certd-server/metadata/deploy_VolcengineDeployToALB.yaml
+++ b/packages/ui/certd-server/metadata/deploy_HauweiDeployCertToOBS.yaml
@@ -2,22 +2,23 @@ showRunStrategy: false
default:
strategy:
runStrategy: 1
-name: VolcengineDeployToALB
-title: 火山引擎-部署证书至ALB
-icon: svg:icon-volcengine
-group: volcengine
-desc: 部署至火山引擎应用负载均衡
+name: HauweiDeployCertToOBS
+title: 华为云-部署证书至OBS
+icon: svg:icon-huawei
+group: huawei
+desc: ''
input:
cert:
title: 域名证书
- helper: 请选择前置任务输出的域名证书
+ helper: >-
+ 请选择前置任务输出的域名证书
+
+ 如果你选择使用ccm证书ID,则需要在[域名管理页面右上角开启SCM授权](https://console.huaweicloud.com/cdn/#/cdn/domain)
component:
name: output-selector
from:
- - CertApply
- - CertApplyLego
- - CertApplyUpload
- - VolcengineUploadToCertCenter
+ - ':cert:'
+ - HauweiUploadToCCM
required: true
order: 0
certDomains:
@@ -34,51 +35,30 @@ input:
}
}
+ template: false
required: false
order: 0
accessId:
title: Access授权
- helper: 火山引擎AccessKeyId、AccessKeySecret
+ helper: 华为云授权AccessKeyId、AccessKeySecret
component:
name: access-selector
- type: volcengine
+ type: huawei
required: true
order: 0
- regionId:
- title: Region
- helper: 地区选择
- component:
- name: a-select
- options:
- - label: 北京
- value: cn-beijing
- - label: 上海
- value: cn-shanghai
- - label: 广州
- value: cn-guangzhou
- - label: 香港
- value: cn-hongkong
- - label: 柔佛
- value: ap-southeast-1
- - label: 雅加达
- value: ap-southeast-3
- value: cn-beijing
- required: true
- order: 0
- listenerList:
- title: 监听器列表
+ bucketList:
+ title: 存储桶
component:
name: remote-select
vModel: value
mode: tags
type: plugin
- action: onGetListenerList
+ action: onGetBucketList
+ search: false
+ pager: false
watches:
- certDomains
- accessId
- - certDomains
- - accessId
- - regionId
required: true
mergeScript: |2-
@@ -90,11 +70,36 @@ input:
},
}
- helper: |-
- 选择要部署证书的监听器
- 需要在监听器中选择证书中心,进行跨服务访问授权
+ helper: 请选择存储桶
+ order: 0
+ domainList:
+ title: 自定义域名
+ component:
+ name: remote-select
+ vModel: value
+ mode: tags
+ type: plugin
+ action: onGetDomainList
+ search: false
+ pager: false
+ watches:
+ - certDomains
+ - accessId
+ - bucketList
+ required: true
+ mergeScript: |2-
+
+ return {
+ component:{
+ form: ctx.compute(({form})=>{
+ return form
+ })
+ },
+ }
+
+ helper: 请选择自定义域名
order: 0
output: {}
type: builtIn
pluginType: deploy
-scriptFilePath: ../../../plugins/plugin-volcengine/plugins/plugin-deploy-to-alb.js
+scriptFilePath: ../../../plugins/plugin-huawei/plugins/index.js
diff --git a/packages/ui/certd-server/metadata/deploy_HauweiUploadToCCM.yaml b/packages/ui/certd-server/metadata/deploy_HauweiUploadToCCM.yaml
index 6d5647df7..09303fc23 100644
--- a/packages/ui/certd-server/metadata/deploy_HauweiUploadToCCM.yaml
+++ b/packages/ui/certd-server/metadata/deploy_HauweiUploadToCCM.yaml
@@ -6,7 +6,7 @@ name: HauweiUploadToCCM
title: 华为云-上传证书至CCM
icon: svg:icon-huawei
group: huawei
-desc: 上传证书到华为云CCM
+desc: 上传证书到华为云云证书管理(CCM)
input:
cert:
title: 域名证书
@@ -14,9 +14,7 @@ input:
component:
name: output-selector
from:
- - CertApply
- - CertApplyLego
- - CertApplyUpload
+ - ':cert:'
required: true
order: 0
certDomains:
@@ -33,6 +31,7 @@ input:
}
}
+ template: false
required: false
order: 0
accessId:
diff --git a/packages/ui/certd-server/metadata/deploy_JDCloudDeployToCDN.yaml b/packages/ui/certd-server/metadata/deploy_JDCloudDeployToCDN.yaml
index ebdda4c86..5376a4acb 100644
--- a/packages/ui/certd-server/metadata/deploy_JDCloudDeployToCDN.yaml
+++ b/packages/ui/certd-server/metadata/deploy_JDCloudDeployToCDN.yaml
@@ -14,9 +14,7 @@ input:
component:
name: output-selector
from:
- - CertApply
- - CertApplyLego
- - CertApplyUpload
+ - ':cert:'
- JDCloudUploadCert
required: true
order: 0
@@ -34,6 +32,7 @@ input:
}
}
+ template: false
required: false
order: 0
accessId:
@@ -52,6 +51,8 @@ input:
mode: tags
type: plugin
action: onGetDomainList
+ search: false
+ pager: false
watches:
- certDomains
- accessId
diff --git a/packages/ui/certd-server/metadata/deploy_JDCloudUpdateCert.yaml b/packages/ui/certd-server/metadata/deploy_JDCloudUpdateCert.yaml
index aeda33c71..d21ac6e66 100644
--- a/packages/ui/certd-server/metadata/deploy_JDCloudUpdateCert.yaml
+++ b/packages/ui/certd-server/metadata/deploy_JDCloudUpdateCert.yaml
@@ -14,9 +14,7 @@ input:
component:
name: output-selector
from:
- - CertApply
- - CertApplyLego
- - CertApplyUpload
+ - ':cert:'
- JDCloudUploadCert
required: true
order: 0
@@ -34,6 +32,7 @@ input:
}
}
+ template: false
required: false
order: 0
accessId:
@@ -52,6 +51,8 @@ input:
mode: tags
type: plugin
action: onGetCertList
+ search: false
+ pager: false
watches:
- certDomains
- accessId
diff --git a/packages/ui/certd-server/metadata/deploy_JDCloudUploadCert.yaml b/packages/ui/certd-server/metadata/deploy_JDCloudUploadCert.yaml
index 080a2bffe..2196e1ddb 100644
--- a/packages/ui/certd-server/metadata/deploy_JDCloudUploadCert.yaml
+++ b/packages/ui/certd-server/metadata/deploy_JDCloudUploadCert.yaml
@@ -14,9 +14,7 @@ input:
component:
name: output-selector
from:
- - CertApply
- - CertApplyLego
- - CertApplyUpload
+ - ':cert:'
- JDCloudUploadCert
required: true
order: 0
diff --git a/packages/ui/certd-server/metadata/deploy_KsyunRefreshCert.yaml b/packages/ui/certd-server/metadata/deploy_KsyunRefreshCert.yaml
new file mode 100644
index 000000000..084a3777f
--- /dev/null
+++ b/packages/ui/certd-server/metadata/deploy_KsyunRefreshCert.yaml
@@ -0,0 +1,73 @@
+showRunStrategy: false
+default:
+ strategy:
+ runStrategy: 1
+name: KsyunRefreshCert
+title: 金山云-更新CDN证书
+desc: 金山云自动更新CDN证书
+icon: svg:icon-ksyun
+group: cdn
+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: 金山云授权
+ component:
+ name: access-selector
+ type: ksyun
+ required: true
+ order: 0
+ certList:
+ title: 证书Id
+ 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: 要更新的金山云CDN证书id,如果这里没有,请先给cdn域名手动绑定一次证书
+ order: 0
+output: {}
+type: builtIn
+pluginType: deploy
+scriptFilePath: ../../../plugins/plugin-ksyun/plugins/plugin-refresh-cert.js
diff --git a/packages/ui/certd-server/metadata/deploy_ProxmoxUploadCert.yaml b/packages/ui/certd-server/metadata/deploy_ProxmoxUploadCert.yaml
deleted file mode 100644
index 7a3b082e3..000000000
--- a/packages/ui/certd-server/metadata/deploy_ProxmoxUploadCert.yaml
+++ /dev/null
@@ -1,57 +0,0 @@
-showRunStrategy: false
-default:
- strategy:
- runStrategy: 1
-name: ProxmoxUploadCert
-title: Proxmox-上传证书到Proxmox
-icon: svg:icon-proxmox
-group: panel
-needPlus: true
-input:
- cert:
- title: 域名证书
- helper: 请选择前置任务输出的域名证书
- component:
- name: output-selector
- from:
- - CertApply
- - CertApplyLego
- - CertApplyUpload
- order: 0
- accessId:
- title: Proxmox授权
- component:
- name: access-selector
- type: proxmox
- required: true
- order: 0
- nodes:
- title: 节点
- component:
- name: remote-select
- vModel: value
- mode: tags
- type: plugin
- typeName: ProxmoxUploadCert
- action: onGetNodeList
- watches:
- - certDomains
- - accessId
- - accessId
- required: true
- mergeScript: |2-
-
- return {
- component:{
- form: ctx.compute(({form})=>{
- return form
- })
- },
- }
-
- helper: 要部署证书的节点
- order: 0
-output: {}
-type: builtIn
-pluginType: deploy
-scriptFilePath: ../../../plugins/plugin-proxmox/plugins/plugin-upload.js
diff --git a/packages/ui/certd-server/metadata/deploy_QiniuCertUpload.yaml b/packages/ui/certd-server/metadata/deploy_QiniuCertUpload.yaml
deleted file mode 100644
index c741a0314..000000000
--- a/packages/ui/certd-server/metadata/deploy_QiniuCertUpload.yaml
+++ /dev/null
@@ -1,39 +0,0 @@
-showRunStrategy: false
-default:
- strategy:
- runStrategy: 1
-name: QiniuCertUpload
-title: 七牛云-上传证书到七牛云
-icon: svg:icon-qiniuyun
-group: qiniu
-desc: 上传到七牛云
-input:
- certName:
- title: 证书名称
- helper: 上传后将以此名称作为前缀备注
- order: 0
- cert:
- title: 域名证书
- helper: 请选择前置任务输出的域名证书
- component:
- name: output-selector
- from:
- - CertApply
- - CertApplyLego
- - CertApplyUpload
- required: true
- order: 0
- accessId:
- title: Access授权
- helper: 七牛云授权
- component:
- name: access-selector
- type: qiniu
- required: true
- order: 0
-output:
- qiniuCertId:
- title: 上传成功后的七牛云CertId
-type: builtIn
-pluginType: deploy
-scriptFilePath: ../../../plugins/plugin-qiniu/plugin/upload-cert/index.js
diff --git a/packages/ui/certd-server/metadata/deploy_QnapDeploy.yaml b/packages/ui/certd-server/metadata/deploy_QnapDeploy.yaml
deleted file mode 100644
index 2dc092535..000000000
--- a/packages/ui/certd-server/metadata/deploy_QnapDeploy.yaml
+++ /dev/null
@@ -1,34 +0,0 @@
-showRunStrategy: false
-default:
- strategy:
- runStrategy: 1
-name: QnapDeploy
-title: 威联通-部署证书到威联通
-icon: svg:icon-qnap
-group: panel
-desc: 部署证书到qnap
-needPlus: true
-input:
- cert:
- title: 域名证书
- helper: 请选择前置任务输出的域名证书
- component:
- name: output-selector
- from:
- - CertApply
- - CertApplyLego
- - CertApplyUpload
- required: true
- order: 0
- accessId:
- title: ssh登录授权
- helper: ssh登录授权
- component:
- name: access-selector
- type: ssh
- required: true
- order: 0
-output: {}
-type: builtIn
-pluginType: deploy
-scriptFilePath: ../../../plugins/plugin-qnap/plugins/plugin-qnap.js
diff --git a/packages/ui/certd-server/metadata/deploy_RestartCertd.yaml b/packages/ui/certd-server/metadata/deploy_RestartCertd.yaml
index 958869287..830f3346a 100644
--- a/packages/ui/certd-server/metadata/deploy_RestartCertd.yaml
+++ b/packages/ui/certd-server/metadata/deploy_RestartCertd.yaml
@@ -6,9 +6,10 @@ name: RestartCertd
title: 重启 Certd
icon: mdi:restart
desc: 【仅管理员可用】 重启 certd的https服务,用于更新 Certd 的 ssl 证书
-group: other
+group: admin
+onlyAdmin: true
input: {}
output: {}
type: builtIn
pluginType: deploy
-scriptFilePath: ../../../plugins/plugin-other/plugins/plugin-restart.js
+scriptFilePath: ../../../plugins/plugin-admin/plugin-restart.js
diff --git a/packages/ui/certd-server/metadata/deploy_TencentActionInstancesPlugin.yaml b/packages/ui/certd-server/metadata/deploy_TencentActionInstancesPlugin.yaml
deleted file mode 100644
index 82268c562..000000000
--- a/packages/ui/certd-server/metadata/deploy_TencentActionInstancesPlugin.yaml
+++ /dev/null
@@ -1,135 +0,0 @@
-showRunStrategy: false
-default:
- strategy:
- runStrategy: 0
-name: TencentActionInstancesPlugin
-title: 腾讯云-实例开关机
-icon: svg:icon-tencentcloud
-group: tencent
-desc: 腾讯云实例开关机
-needPlus: false
-input:
- accessId:
- title: Access提供者
- helper: access 授权
- component:
- name: access-selector
- type: tencent
- required: true
- order: 0
- region:
- title: 所在地域
- helper: 实例所在地域
- component:
- name: a-auto-complete
- vModel: value
- options:
- - value: ''
- label: '--------中国大陆地区-------'
- disabled: true
- - value: ap-beijing-1
- label: 北京1区
- - value: ap-beijing
- label: 北京
- - value: ap-nanjing
- label: 南京
- - value: ap-shanghai
- label: 上海
- - value: ap-guangzhou
- label: 广州
- - value: ap-chengdu
- label: 成都
- - value: ap-chongqing
- label: 重庆
- - value: ap-shenzhen-fsi
- label: 深圳金融
- - value: ap-shanghai-fsi
- label: 上海金融
- - value: ap-beijing-fsi
- label: 北京金融
- - value: ''
- label: '--------中国香港及境外-------'
- disabled: true
- - value: ap-hongkong
- label: 中国香港
- - value: ap-singapore
- label: 新加坡
- - value: ap-mumbai
- label: 孟买
- - value: ap-jakarta
- label: 雅加达
- - value: ap-seoul
- label: 首尔
- - value: ap-bangkok
- label: 曼谷
- - value: ap-tokyo
- label: 东京
- - value: na-siliconvalley
- label: 硅谷
- - value: na-ashburn
- label: 弗吉尼亚
- - value: sa-saopaulo
- label: 圣保罗
- - value: eu-frankfurt
- label: 法兰克福
- required: true
- order: 0
- instanceId:
- title: 实列ID
- component:
- name: remote-select
- vModel: value
- mode: tags
- type: plugin
- typeName: TencentStartInstancesPlugin
- action: onGetInstanceList
- watches:
- - certDomains
- - accessId
- - region
- required: true
- mergeScript: |2-
-
- return {
- component:{
- form: ctx.compute(({form})=>{
- return form
- })
- },
- }
-
- helper: 请选择实列
- order: 0
- action:
- title: 操作
- component:
- name: a-radio-group
- vModel: value
- options:
- - value: start
- label: 开机
- - value: stop
- label: 关机
- required: true
- order: 0
- charging:
- title: 实例关机不收费
- value: true
- component:
- name: a-switch
- vModel: checked
- placeholder: 按量计费实例关机不收费
- required: false
- mergeScript: |2-
-
- return {
- show: ctx.compute(({form})=>{
- return form.action === 'stop';
- })
- }
-
- order: 0
-output: {}
-type: builtIn
-pluginType: deploy
-scriptFilePath: ../../../plugins/plugin-tencent/plugin/start-instances/index.js
diff --git a/packages/ui/certd-server/metadata/deploy_TencentDeleteExpiringCert.yaml b/packages/ui/certd-server/metadata/deploy_TencentDeleteExpiringCert.yaml
deleted file mode 100644
index db9293887..000000000
--- a/packages/ui/certd-server/metadata/deploy_TencentDeleteExpiringCert.yaml
+++ /dev/null
@@ -1,61 +0,0 @@
-showRunStrategy: false
-default:
- strategy:
- runStrategy: 0
-name: TencentDeleteExpiringCert
-title: 腾讯云-删除即将过期证书
-icon: svg:icon-tencentcloud
-group: tencent
-desc: 仅删除未使用的证书
-needPlus: true
-input:
- accessId:
- title: Access提供者
- helper: access 授权
- component:
- name: access-selector
- type: tencent
- required: true
- order: 0
- searchKey:
- title: 关键字筛选
- helper: 仅匹配ID、备注名称、域名包含关键字的证书,可以不填
- required: false
- component:
- name: a-input
- order: 0
- maxCount:
- title: 最大删除数量
- helper: 单次运行最大删除数量
- value: 100
- component:
- name: a-input-number
- vModel: value
- required: true
- order: 0
- expiringDays:
- title: 即将过期天数
- helper: >-
- 仅删除有效期小于此天数的证书,
-
- 注意:`1.26.14`版本之前Certd创建的证书流水线默认是到期前20天才更新证书,需要将之前创建的证书申请任务的更新天数改为35天,保证删除之前就已经替换掉即将过期证书
- value: 30
- component:
- name: a-input-number
- vModel: value
- required: true
- order: 0
- checkTimeout:
- title: 检查超时时间
- helper: 检查删除任务结果超时时间,单位分钟
- value: 10
- component:
- name: a-input-number
- vModel: value
- required: true
- order: 0
-output: {}
-type: builtIn
-pluginType: deploy
-scriptFilePath: ../../../plugins/plugin-tencent/plugin/index.js
diff --git a/packages/ui/certd-server/metadata/deploy_TencentDeployCertToCDNv2.yaml b/packages/ui/certd-server/metadata/deploy_TencentDeployCertToCDNv2.yaml
deleted file mode 100644
index 0835f9e0f..000000000
--- a/packages/ui/certd-server/metadata/deploy_TencentDeployCertToCDNv2.yaml
+++ /dev/null
@@ -1,59 +0,0 @@
-showRunStrategy: false
-default:
- strategy:
- runStrategy: 1
-name: TencentDeployCertToCDNv2
-title: 腾讯云-部署到CDN-v2
-icon: svg:icon-tencentcloud
-group: tencent
-desc: 推荐使用
-input:
- accessId:
- title: Access提供者
- helper: access 授权
- component:
- name: access-selector
- type: tencent
- required: true
- order: 0
- domains:
- title: CDN域名
- component:
- name: remote-select
- vModel: value
- mode: tags
- type: plugin
- typeName: TencentDeployCertToCDNv2
- action: onGetDomainList
- watches:
- - certDomains
- - accessId
- required: true
- mergeScript: |2-
-
- return {
- component:{
- form: ctx.compute(({form})=>{
- return form
- })
- },
- }
-
- helper: 请选择域名或输入域名
- order: 0
- cert:
- title: 域名证书
- helper: 请选择前置任务输出的域名证书,或者选择前置任务“上传证书到腾讯云”任务的证书ID
- component:
- name: output-selector
- from:
- - CertApply
- - CertApplyLego
- - CertApplyUpload
- - UploadCertToTencent
- required: true
- order: 0
-output: {}
-type: builtIn
-pluginType: deploy
-scriptFilePath: ../../../plugins/plugin-tencent/plugin/index.js
diff --git a/packages/ui/certd-server/metadata/deploy_TencentDeployCertToLive.yaml b/packages/ui/certd-server/metadata/deploy_TencentDeployCertToLive.yaml
deleted file mode 100644
index 45f0e8546..000000000
--- a/packages/ui/certd-server/metadata/deploy_TencentDeployCertToLive.yaml
+++ /dev/null
@@ -1,60 +0,0 @@
-showRunStrategy: false
-default:
- strategy:
- runStrategy: 1
-name: TencentDeployCertToLive
-title: 腾讯云-部署到腾讯云直播
-icon: svg:icon-tencentcloud
-desc: https://console.cloud.tencent.com/live/
-group: tencent
-needPlus: true
-input:
- accessId:
- title: Access提供者
- helper: access 授权
- component:
- name: access-selector
- type: tencent
- required: true
- order: 0
- domains:
- title: 直播域名
- component:
- name: remote-select
- vModel: value
- mode: tags
- type: plugin
- typeName: TencentDeployCertToLive
- action: onGetDomainList
- watches:
- - certDomains
- - accessId
- required: true
- mergeScript: |2-
-
- return {
- component:{
- form: ctx.compute(({form})=>{
- return form
- })
- },
- }
-
- helper: 请选择域名或输入域名
- order: 0
- cert:
- title: 域名证书
- helper: 请选择前置任务输出的域名证书,或者选择前置任务“上传证书到腾讯云”任务的证书ID
- component:
- name: output-selector
- from:
- - CertApply
- - CertApplyLego
- - CertApplyUpload
- - UploadCertToTencent
- required: true
- order: 0
-output: {}
-type: builtIn
-pluginType: deploy
-scriptFilePath: ../../../plugins/plugin-tencent/plugin/deploy-to-live/index.js
diff --git a/packages/ui/certd-server/metadata/deploy_UploadCertToOss.yaml b/packages/ui/certd-server/metadata/deploy_UploadCertToOss.yaml
new file mode 100644
index 000000000..3cccf8b7e
--- /dev/null
+++ b/packages/ui/certd-server/metadata/deploy_UploadCertToOss.yaml
@@ -0,0 +1,195 @@
+showRunStrategy: false
+default:
+ strategy:
+ runStrategy: 1
+name: UploadCertToOss
+title: 上传证书到对象存储OSS
+icon: ion:cloud-upload-outline
+desc: 支持阿里云OSS、腾讯云COS、七牛云KODO、S3、MinIO、FTP、SFTP
+group: host
+input:
+ cert:
+ title: 域名证书
+ helper: 请选择前置任务输出的域名证书
+ component:
+ name: output-selector
+ from:
+ - ':cert:'
+ required: true
+ order: 0
+ uploaderType:
+ title: OSS类型
+ component:
+ name: a-select
+ vModel: value
+ options:
+ - label: 阿里云OSS
+ value: alioss
+ - label: 腾讯云COS
+ value: tencentcos
+ - label: 七牛OSS
+ value: qiniuoss
+ - label: S3/Minio
+ value: s3
+ - label: SFTP
+ value: sftp
+ - label: FTP
+ value: ftp
+ required: true
+ order: 0
+ accessId:
+ title: OSS授权
+ component:
+ name: access-selector
+ required: true
+ mergeScript: |2-
+
+ return {
+ component: {
+ type: ctx.compute(({form})=>{
+ return form.uploaderType;
+ })
+ }
+ }
+
+ order: 0
+ certType:
+ title: 证书格式
+ helper: 要部署的证书格式,支持pem、pfx、der、jks
+ component:
+ name: a-select
+ options:
+ - value: pem
+ label: pem(crt),Nginx等大部分应用
+ - value: pfx
+ label: pfx,一般用于IIS
+ - value: der
+ label: der,一般用于Apache
+ - value: jks
+ label: jks,一般用于JAVA应用
+ - value: one
+ label: 证书私钥一体,crt+key简单合并为一个pem文件
+ required: true
+ order: 0
+ crtPath:
+ title: 证书保存路径
+ helper: 路径要包含证书文件名,例如:/tmp/cert.pem
+ component:
+ placeholder: /root/deploy/nginx/full_chain.pem
+ mergeScript: |2-
+
+ return {
+ show: ctx.compute(({form})=>{
+ return form.certType === 'pem';
+ })
+ }
+
+ required: true
+ rules:
+ - type: filepath
+ order: 0
+ keyPath:
+ title: 私钥保存路径
+ helper: 路径要包含私钥文件名,例如:/tmp/cert.key
+ component:
+ placeholder: /root/deploy/nginx/cert.key
+ mergeScript: |2-
+
+ return {
+ show: ctx.compute(({form})=>{
+ return form.certType === 'pem';
+ })
+ }
+
+ required: true
+ rules:
+ - type: filepath
+ order: 0
+ icPath:
+ title: 中间证书保存路径
+ helper: 路径要包含文件名,一般情况传上面两个文件即可,极少数情况需要这个中间证书
+ component:
+ placeholder: /root/deploy/nginx/intermediate.pem
+ mergeScript: |2-
+
+ return {
+ show: ctx.compute(({form})=>{
+ return form.certType === 'pem';
+ })
+ }
+
+ rules:
+ - type: filepath
+ order: 0
+ pfxPath:
+ title: PFX证书保存路径
+ helper: 路径要包含证书文件名,例如:D:\iis\cert.pfx
+ component:
+ placeholder: D:\iis\cert.pfx
+ mergeScript: |2-
+
+ return {
+ show: ctx.compute(({form})=>{
+ return form.certType === 'pfx';
+ })
+ }
+
+ required: true
+ rules:
+ - type: filepath
+ order: 0
+ derPath:
+ title: DER证书保存路径
+ helper: 路径要包含证书文件名,例如:/tmp/cert.der
+ component:
+ placeholder: /root/deploy/apache/cert.der
+ mergeScript: |2-
+
+ return {
+ show: ctx.compute(({form})=>{
+ return form.certType === 'der';
+ })
+ }
+
+ required: true
+ rules:
+ - type: filepath
+ order: 0
+ jksPath:
+ title: jks证书保存路径
+ helper: 路径要包含证书文件名,例如:/tmp/cert.jks
+ component:
+ placeholder: /root/deploy/java_app/cert.jks
+ mergeScript: |2-
+
+ return {
+ show: ctx.compute(({form})=>{
+ return form.certType === 'jks';
+ })
+ }
+
+ required: true
+ rules:
+ - type: filepath
+ order: 0
+ onePath:
+ title: 一体证书保存路径
+ helper: 路径要包含证书文件名,例如:/tmp/crt_key.pem
+ component:
+ placeholder: /app/crt_key.pem
+ mergeScript: |2-
+
+ return {
+ show: ctx.compute(({form})=>{
+ return form.certType === 'one';
+ })
+ }
+
+ required: true
+ rules:
+ - type: filepath
+ order: 0
+output: {}
+type: builtIn
+pluginType: deploy
+scriptFilePath: ../../../plugins/plugin-host/plugin/plugin-upload-to-oss.js
diff --git a/packages/ui/certd-server/metadata/deploy_UploadCertToTencent.yaml b/packages/ui/certd-server/metadata/deploy_UploadCertToTencent.yaml
deleted file mode 100644
index f31708826..000000000
--- a/packages/ui/certd-server/metadata/deploy_UploadCertToTencent.yaml
+++ /dev/null
@@ -1,38 +0,0 @@
-showRunStrategy: false
-default:
- strategy:
- runStrategy: 1
-name: UploadCertToTencent
-title: 腾讯云-上传证书到腾讯云
-icon: svg:icon-tencentcloud
-desc: 上传成功后输出:tencentCertId
-group: tencent
-input:
- name:
- title: 证书名称
- order: 0
- accessId:
- title: Access授权
- helper: access授权
- component:
- name: access-selector
- type: tencent
- required: true
- order: 0
- cert:
- title: 域名证书
- helper: 请选择前置任务输出的域名证书
- component:
- name: output-selector
- from:
- - CertApply
- - CertApplyLego
- - CertApplyUpload
- required: true
- order: 0
-output:
- tencentCertId:
- title: 上传成功后的腾讯云CertId
-type: builtIn
-pluginType: deploy
-scriptFilePath: ../../../plugins/plugin-tencent/plugin/upload-to-tencent/index.js
diff --git a/packages/ui/certd-server/metadata/deploy_VolcengineDeployToCLB.yaml b/packages/ui/certd-server/metadata/deploy_VolcengineDeployToCLB.yaml
deleted file mode 100644
index b2b1c8891..000000000
--- a/packages/ui/certd-server/metadata/deploy_VolcengineDeployToCLB.yaml
+++ /dev/null
@@ -1,110 +0,0 @@
-showRunStrategy: false
-default:
- strategy:
- runStrategy: 1
-name: VolcengineDeployToCLB
-title: 火山引擎-部署证书至CLB
-icon: svg:icon-volcengine
-group: volcengine
-desc: 部署至火山引擎负载均衡
-input:
- cert:
- title: 域名证书
- helper: 请选择前置任务输出的域名证书
- component:
- name: output-selector
- from:
- - CertApply
- - CertApplyLego
- - CertApplyUpload
- - VolcengineUploadToCertCenter
- 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: volcengine
- required: true
- order: 0
- regionId:
- title: Region
- helper: 地区选择
- component:
- name: a-select
- options:
- - label: 北京
- value: cn-beijing
- - label: 上海
- value: cn-shanghai
- - label: 广州
- value: cn-guangzhou
- - label: 深圳
- value: cn-shenzhen
- - label: 杭州
- value: cn-hangzhou
- - label: 南京
- value: cn-north-1
- - label: 青岛
- value: cn-qingdao
- - label: 重庆
- value: cn-chengdu
- - label: 香港
- value: cn-hongkong
- - label: 柔佛
- value: ap-southeast-1
- - label: 雅加达
- value: ap-southeast-3
- value: cn-beijing
- required: true
- order: 0
- listenerList:
- title: 监听器列表
- component:
- name: remote-select
- vModel: value
- mode: tags
- type: plugin
- action: onGetListenerList
- watches:
- - certDomains
- - accessId
- - certDomains
- - accessId
- - regionId
- required: true
- mergeScript: |2-
-
- return {
- component:{
- form: ctx.compute(({form})=>{
- return form
- })
- },
- }
-
- helper: |-
- 选择要部署证书的监听器
- 需要在监听器中选择证书中心,进行跨服务访问授权
- order: 0
-output: {}
-type: builtIn
-pluginType: deploy
-scriptFilePath: ../../../plugins/plugin-volcengine/plugins/plugin-deploy-to-clb.js
diff --git a/packages/ui/certd-server/metadata/deploy_VolcengineUploadToCertCenter.yaml b/packages/ui/certd-server/metadata/deploy_VolcengineUploadToCertCenter.yaml
deleted file mode 100644
index 6eaad56d5..000000000
--- a/packages/ui/certd-server/metadata/deploy_VolcengineUploadToCertCenter.yaml
+++ /dev/null
@@ -1,51 +0,0 @@
-showRunStrategy: false
-default:
- strategy:
- runStrategy: 1
-name: VolcengineUploadToCertCenter
-title: 火山引擎-上传证书至证书中心
-icon: svg:icon-volcengine
-group: volcengine
-desc: 上传证书至火山引擎证书中心
-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
- accessId:
- title: Access授权
- helper: 火山引擎AccessKeyId、AccessKeySecret
- component:
- name: access-selector
- type: volcengine
- required: true
- order: 0
-output:
- volcengineCertId:
- title: 上传成功后的火山引擎证书Id
-type: builtIn
-pluginType: deploy
-scriptFilePath: ../../../plugins/plugin-volcengine/plugins/plugin-upload-to-cert-center.js
diff --git a/packages/ui/certd-server/metadata/deploy_WaitPlugin.yaml b/packages/ui/certd-server/metadata/deploy_WaitPlugin.yaml
deleted file mode 100644
index 803d16b5a..000000000
--- a/packages/ui/certd-server/metadata/deploy_WaitPlugin.yaml
+++ /dev/null
@@ -1,23 +0,0 @@
-showRunStrategy: true
-default:
- strategy:
- runStrategy: 1
-name: WaitPlugin
-title: 等待
-icon: ri:rest-time-line
-desc: 等待一段时间
-group: other
-input:
- waitTime:
- title: 等待时长
- value: 30
- component:
- name: a-input-number
- vModel: value
- helper: 单位:秒
- required: true
- order: 0
-output: {}
-type: builtIn
-pluginType: deploy
-scriptFilePath: ../../../plugins/plugin-other/plugins/plugin-wait.js
diff --git a/packages/ui/certd-server/metadata/deploy_WoaiCDN.yaml b/packages/ui/certd-server/metadata/deploy_WoaiCDN.yaml
deleted file mode 100644
index f815f7c75..000000000
--- a/packages/ui/certd-server/metadata/deploy_WoaiCDN.yaml
+++ /dev/null
@@ -1,47 +0,0 @@
-showRunStrategy: false
-default:
- strategy:
- runStrategy: 1
-name: WoaiCDN
-title: 我爱云-部署证书到我爱云CDN
-desc: 部署证书到我爱云CDN
-icon: clarity:plugin-line
-group: cdn
-input:
- baseApi:
- title: 接口地址(可留空)
- helper: 请填写我爱云的地址, 默认为 [API](https://console.edeg.sxhjgy.cn) 末尾请不要携带`/`
- component:
- name: a-input
- required: false
- order: 0
- certId:
- title: 证书ID
- helper: 请填写 [证书列表](https://console.edge.sxhjgy.cn/site/certificate) 中的证书的ID
- component:
- name: a-input
- required: true
- order: 0
- cert:
- title: 域名证书
- helper: 请选择前置任务输出的域名证书
- component:
- name: output-selector
- from:
- - CertApply
- - CertApplyLego
- - CertApplyUpload
- required: true
- order: 0
- accessId:
- title: Access授权
- helper: 我爱云的用户、密码授权
- component:
- name: access-selector
- type: woai
- required: true
- order: 0
-output: {}
-type: builtIn
-pluginType: deploy
-scriptFilePath: ../../../plugins/plugin-woai/plugins/plugin-deploy-to-cdn.js
diff --git a/packages/ui/certd-server/metadata/deploy_hostShellExecute.yaml b/packages/ui/certd-server/metadata/deploy_hostShellExecute.yaml
index 19e67a1c9..2bbabcdbe 100644
--- a/packages/ui/certd-server/metadata/deploy_hostShellExecute.yaml
+++ b/packages/ui/certd-server/metadata/deploy_hostShellExecute.yaml
@@ -1,4 +1,4 @@
-showRunStrategy: false
+showRunStrategy: true
default:
strategy:
runStrategy: 1
diff --git a/packages/ui/certd-server/metadata/deploy_uploadCertToAliyun.yaml b/packages/ui/certd-server/metadata/deploy_uploadCertToAliyun.yaml
index e2114bab9..abfc2843a 100644
--- a/packages/ui/certd-server/metadata/deploy_uploadCertToAliyun.yaml
+++ b/packages/ui/certd-server/metadata/deploy_uploadCertToAliyun.yaml
@@ -3,10 +3,10 @@ default:
strategy:
runStrategy: 1
name: uploadCertToAliyun
-title: 阿里云-上传证书到阿里云
+title: 阿里云-上传证书到CAS
icon: svg:icon-aliyun
group: aliyun
-desc: 如果不想在阿里云上同一份证书上传多次,可以把此任务作为前置任务,其他阿里云任务证书那一项选择此任务的输出
+desc: 上传证书到阿里云证书管理服务(CAS),如果不想在阿里云上同一份证书上传多次,可以把此任务作为前置任务,其他阿里云任务证书那一项选择此任务的输出
input:
name:
title: 证书名称
@@ -22,12 +22,16 @@ input:
- value: cn-hangzhou
endpoint: cas.aliyuncs.com
label: cn-hangzhou-中国大陆
+ - value: ap-southeast-1
+ endpoint: cas.ap-southeast-1.aliyuncs.com
+ label: ap-southeast-1-新加坡(国际版选这个)
+ - value: private-
+ endpoint: ''
+ disabled: true
+ label: 以下是私有证书区域
- 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-马来西亚(吉隆坡)
@@ -45,9 +49,7 @@ input:
component:
name: output-selector
from:
- - CertApply
- - CertApplyLego
- - CertApplyUpload
+ - ':cert:'
required: true
order: 0
accessId:
diff --git a/packages/ui/certd-server/metadata/deploy_uploadCertToHost.yaml b/packages/ui/certd-server/metadata/deploy_uploadCertToHost.yaml
index b34a67372..1cfd40fde 100644
--- a/packages/ui/certd-server/metadata/deploy_uploadCertToHost.yaml
+++ b/packages/ui/certd-server/metadata/deploy_uploadCertToHost.yaml
@@ -15,9 +15,7 @@ input:
component:
name: output-selector
from:
- - CertApply
- - CertApplyLego
- - CertApplyUpload
+ - ':cert:'
required: true
order: 0
certType:
@@ -36,6 +34,8 @@ input:
label: jks,一般用于JAVA应用
- value: one
label: 证书私钥一体,crt+key简单合并为一个pem文件
+ - value: p7b
+ label: p7b格式
required: true
order: 0
crtPath:
@@ -57,14 +57,14 @@ input:
order: 0
keyPath:
title: 私钥保存路径
- helper: 需要有写入权限,路径要包含私钥文件名,例如:/tmp/cert.key
+ helper: 原本的私钥保存路径,需要有写入权限,路径要包含私钥文件名,例如:/tmp/cert.key
component:
placeholder: /root/deploy/nginx/cert.key
mergeScript: |2-
return {
show: ctx.compute(({form})=>{
- return form.certType === 'pem';
+ return form.certType === 'pem' || form.certType === 'p7b' ;
})
}
@@ -152,6 +152,23 @@ input:
})
}
+ required: true
+ rules:
+ - type: filepath
+ order: 0
+ p7bPath:
+ title: p7b证书保存路径
+ helper: 填写应用原本的证书保存路径,路径要包含证书文件名,例如:/tmp/domain_cert.p7b
+ component:
+ placeholder: /root/deploy/app/domain_cert.p7b
+ mergeScript: |2-
+
+ return {
+ show: ctx.compute(({form})=>{
+ return form.certType === 'p7b';
+ })
+ }
+
required: true
rules:
- type: filepath
@@ -166,7 +183,9 @@ input:
order: 0
uploadType:
title: 上传方式
- helper: 选择上传方式,sftp或者scp
+ helper: |-
+ 支持sftp或者scp
+ 需要有写入权限,如果没有,须先将证书上传到有权限的目录,再通过后置命令复制到目标路径
value: sftp
component:
name: a-select
@@ -185,14 +204,26 @@ input:
name: a-switch
vModel: checked
order: 0
- script:
- title: shell脚本命令
+ scriptPre:
+ title: 前置命令
component:
name: a-textarea
vModel: value
- rows: 6
+ rows: 3
+ placeholder: mkdir /app/ssl
+ helper: 上传前执行脚本命令,做上传前的准备工作
+ required: false
+ order: 0
+ script:
+ title: 后置命令
+ component:
+ name: a-textarea
+ vModel: value
+ rows: 5
+ placeholder: 'systemctl restart nginx '
helper: |-
- 上传后执行脚本命令,不填则不执行
+ 上传后执行脚本命令,让证书生效(比如重启nginx),不填则不执行
+ 注意:sudo需要配置免密,不要使用-i这种交互式命令
注意:如果目标主机是windows,且终端是cmd,系统会自动将多行命令通过“&&”连接成一行
required: false
order: 0
@@ -220,6 +251,8 @@ output:
title: jks保存路径
hostOnePath:
title: 一体证书保存路径
+ hostP7bPath:
+ title: p7b证书保存路径
type: builtIn
pluginType: deploy
scriptFilePath: ../../../plugins/plugin-host/plugin/upload-to-host/index.js
diff --git a/packages/ui/certd-server/metadata/dnsProvider_aliesa.yaml b/packages/ui/certd-server/metadata/dnsProvider_aliesa.yaml
new file mode 100644
index 000000000..48efd9307
--- /dev/null
+++ b/packages/ui/certd-server/metadata/dnsProvider_aliesa.yaml
@@ -0,0 +1,9 @@
+name: aliesa
+title: 阿里ESA
+desc: 阿里ESA DNS解析
+accessType: aliesa
+icon: svg:icon-aliyun
+order: 0
+type: builtIn
+pluginType: dnsProvider
+scriptFilePath: ../../../plugins/plugin-aliyun/dns-provider/aliesa-dns-provider.js
diff --git a/packages/ui/certd-server/metadata/dnsProvider_aws-route53.yaml b/packages/ui/certd-server/metadata/dnsProvider_aws-route53.yaml
new file mode 100644
index 000000000..1e5d08014
--- /dev/null
+++ b/packages/ui/certd-server/metadata/dnsProvider_aws-route53.yaml
@@ -0,0 +1,9 @@
+name: aws-route53
+title: AWS Route53
+desc: AWS Route53 DNS解析提供商
+accessType: aws
+icon: svg:icon-aws
+order: 0
+type: builtIn
+pluginType: dnsProvider
+scriptFilePath: ../../../plugins/plugin-aws/index.js
diff --git a/packages/ui/certd-server/metadata/dnsProvider_demo.yaml b/packages/ui/certd-server/metadata/dnsProvider_demo.yaml
index 44c0c7a7d..0f36d3fde 100644
--- a/packages/ui/certd-server/metadata/dnsProvider_demo.yaml
+++ b/packages/ui/certd-server/metadata/dnsProvider_demo.yaml
@@ -3,6 +3,7 @@ title: Dns提供商Demo
desc: dns provider示例
icon: clarity:plugin-line
accessType: demo
+order: 99
type: builtIn
pluginType: dnsProvider
scriptFilePath: ../../../plugins/plugin-demo/index.js
diff --git a/packages/ui/certd-server/metadata/dnsProvider_dnspod.yaml b/packages/ui/certd-server/metadata/dnsProvider_dnspod.yaml
deleted file mode 100644
index e1945801c..000000000
--- a/packages/ui/certd-server/metadata/dnsProvider_dnspod.yaml
+++ /dev/null
@@ -1,9 +0,0 @@
-name: dnspod
-title: dnspod(已过时,请尽快换成腾讯云)
-desc: 已废弃,请尽快换成腾讯云类型
-accessType: dnspod
-deprecated: dnspod已废弃,请换成腾讯云
-icon: svg:icon-tencentcloud
-type: builtIn
-pluginType: dnsProvider
-scriptFilePath: ../../../plugins/plugin-tencent/dns-provider/dnspod-dns-provider.js
diff --git a/packages/ui/certd-server/metadata/dnsProvider_godaddy.yaml b/packages/ui/certd-server/metadata/dnsProvider_godaddy.yaml
new file mode 100644
index 000000000..bff296ae0
--- /dev/null
+++ b/packages/ui/certd-server/metadata/dnsProvider_godaddy.yaml
@@ -0,0 +1,9 @@
+name: godaddy
+title: godaddy
+desc: GoDaddy
+icon: simple-icons:godaddy
+accessType: godaddy
+order: 10
+type: builtIn
+pluginType: dnsProvider
+scriptFilePath: ../../../plugins/plugin-godaddy/index.js
diff --git a/packages/ui/certd-server/metadata/dnsProvider_jdcloud.yaml b/packages/ui/certd-server/metadata/dnsProvider_jdcloud.yaml
index 74f461e8c..6ecf89977 100644
--- a/packages/ui/certd-server/metadata/dnsProvider_jdcloud.yaml
+++ b/packages/ui/certd-server/metadata/dnsProvider_jdcloud.yaml
@@ -3,6 +3,7 @@ title: 京东云
desc: 京东云DNS解析提供商
accessType: jdcloud
icon: svg:icon-jdcloud
+order: 3
type: builtIn
pluginType: dnsProvider
scriptFilePath: ../../../plugins/plugin-jdcloud/index.js
diff --git a/packages/ui/certd-server/metadata/dnsProvider_tencent.yaml b/packages/ui/certd-server/metadata/dnsProvider_tencent.yaml
deleted file mode 100644
index b3668b42f..000000000
--- a/packages/ui/certd-server/metadata/dnsProvider_tencent.yaml
+++ /dev/null
@@ -1,8 +0,0 @@
-name: tencent
-title: 腾讯云
-desc: 腾讯云域名DNS解析提供者
-accessType: tencent
-icon: svg:icon-tencentcloud
-type: builtIn
-pluginType: dnsProvider
-scriptFilePath: ../../../plugins/plugin-tencent/dns-provider/tencent-dns-provider.js
diff --git a/packages/ui/certd-server/metadata/dnsProvider_volcengine.yaml b/packages/ui/certd-server/metadata/dnsProvider_volcengine.yaml
deleted file mode 100644
index d5ec854e0..000000000
--- a/packages/ui/certd-server/metadata/dnsProvider_volcengine.yaml
+++ /dev/null
@@ -1,8 +0,0 @@
-name: volcengine
-title: 火山引擎
-desc: 火山引擎DNS解析提供商
-accessType: volcengine
-icon: svg:icon-volcengine
-type: builtIn
-pluginType: dnsProvider
-scriptFilePath: ../../../plugins/plugin-volcengine/volcengine-dns-provider.js
diff --git a/packages/ui/certd-server/metadata/dnsProvider_west.yaml b/packages/ui/certd-server/metadata/dnsProvider_west.yaml
deleted file mode 100644
index 1d764c56b..000000000
--- a/packages/ui/certd-server/metadata/dnsProvider_west.yaml
+++ /dev/null
@@ -1,8 +0,0 @@
-name: west
-title: 西部数码
-desc: west dns provider
-icon: svg:icon-xibushuma
-accessType: west
-type: builtIn
-pluginType: dnsProvider
-scriptFilePath: ../../../plugins/plugin-west/index.js
diff --git a/packages/ui/certd-server/metadata/notification_dingtalk.yaml b/packages/ui/certd-server/metadata/notification_dingtalk.yaml
index 99da00250..30010a253 100644
--- a/packages/ui/certd-server/metadata/notification_dingtalk.yaml
+++ b/packages/ui/certd-server/metadata/notification_dingtalk.yaml
@@ -48,4 +48,4 @@ input:
required: false
type: builtIn
pluginType: notification
-scriptFilePath: ../../../plugins/plugin-notification/dingtalk/index.js
+scriptFilePath: ../../../plugins/plugin-notification/index.js
diff --git a/packages/ui/certd-server/metadata/notification_email.yaml b/packages/ui/certd-server/metadata/notification_email.yaml
index b43ed45c2..b7283d141 100644
--- a/packages/ui/certd-server/metadata/notification_email.yaml
+++ b/packages/ui/certd-server/metadata/notification_email.yaml
@@ -1,14 +1,14 @@
name: email
title: 电子邮件
desc: 电子邮件通知
+order: -100
input:
receivers:
title: 收件人邮箱
component:
- name: a-select
+ name: email-selector
vModel: value
mode: tags
- open: false
required: true
helper: |-
可以填写多个,填写一个按回车键再填写下一个
diff --git a/packages/ui/certd-server/metadata/notification_iyuu.yaml b/packages/ui/certd-server/metadata/notification_iyuu.yaml
index 3754a6cef..150a102b0 100644
--- a/packages/ui/certd-server/metadata/notification_iyuu.yaml
+++ b/packages/ui/certd-server/metadata/notification_iyuu.yaml
@@ -11,4 +11,4 @@ input:
required: true
type: builtIn
pluginType: notification
-scriptFilePath: ../../../plugins/plugin-notification/iyuu/index.js
+scriptFilePath: ../../../plugins/plugin-notification/index.js
diff --git a/packages/ui/certd-server/metadata/notification_meow.yaml b/packages/ui/certd-server/metadata/notification_meow.yaml
new file mode 100644
index 000000000..eb618b56d
--- /dev/null
+++ b/packages/ui/certd-server/metadata/notification_meow.yaml
@@ -0,0 +1,18 @@
+name: meow
+title: MeoW通知
+desc: https://api.chuckfang.com/
+needPlus: false
+input:
+ endpoint:
+ title: MeoW接口地址
+ component:
+ placeholder: https://api.xxxxxx.com
+ required: true
+ nickName:
+ title: 昵称
+ component:
+ placeholder: ''
+ required: true
+type: builtIn
+pluginType: notification
+scriptFilePath: ../../../plugins/plugin-notification/index.js
diff --git a/packages/ui/certd-server/metadata/notification_qywx.yaml b/packages/ui/certd-server/metadata/notification_qywx.yaml
deleted file mode 100644
index 5f0d0c5fd..000000000
--- a/packages/ui/certd-server/metadata/notification_qywx.yaml
+++ /dev/null
@@ -1,32 +0,0 @@
-name: qywx
-title: 企业微信通知
-desc: 企业微信群聊机器人通知
-needPlus: true
-input:
- webhook:
- title: webhook地址
- component:
- placeholder: https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=xxxxx
- helper: '[企微群聊机器人配置说明](https://developer.work.weixin.qq.com/document/path/91770)'
- required: true
- mentionedList:
- title: 提醒指定成员
- component:
- name: a-select
- vModel: value
- mode: tags
- open: false
- required: false
- helper: 填写成员名字,@all 为提醒所有人
- mentionedMobileList:
- title: 提醒指定手机号成员
- component:
- name: a-select
- vModel: value
- mode: tags
- open: false
- required: false
- helper: 填写成员手机号,@all 为提醒所有人
-type: builtIn
-pluginType: notification
-scriptFilePath: ../../../plugins/plugin-notification/qywx/index.js
diff --git a/packages/ui/certd-server/metadata/notification_serverchan.yaml b/packages/ui/certd-server/metadata/notification_serverchan.yaml
deleted file mode 100644
index b1ed8d66d..000000000
--- a/packages/ui/certd-server/metadata/notification_serverchan.yaml
+++ /dev/null
@@ -1,37 +0,0 @@
-name: serverchan
-title: Server酱ᵀ
-desc: https://sct.ftqq.com/
-needPlus: true
-input:
- endpoint:
- title: 服务地址
- value: https://sctapi.ftqq.com
- required: true
- sendKey:
- title: SendKey
- component:
- placeholder: https://sctapi.ftqq.com/.send
- helper: https://sct.ftqq.com/ 微信扫码获取
- required: true
- channel:
- title: 消息通道号
- component:
- placeholder: 9|66
- helper: 可以不填,最多两个通道,[通道配置说明](https://sct.ftqq.com/sendkey)
- required: false
- noip:
- title: 是否隐藏IP
- component:
- name: a-switch
- vModel: checked
- required: false
- skipSslVerify:
- title: 忽略证书校验
- value: false
- component:
- name: a-switch
- vModel: checked
- required: false
-type: builtIn
-pluginType: notification
-scriptFilePath: ../../../plugins/plugin-notification/serverchan/index.js
diff --git a/packages/ui/certd-server/metadata/notification_serverchan3.yaml b/packages/ui/certd-server/metadata/notification_serverchan3.yaml
deleted file mode 100644
index a87ff5e00..000000000
--- a/packages/ui/certd-server/metadata/notification_serverchan3.yaml
+++ /dev/null
@@ -1,32 +0,0 @@
-name: serverchan3
-title: Server酱³
-desc: https://doc.sc3.ft07.com/serverchan3
-needPlus: true
-input:
- apiURL:
- title: ApiURL
- component:
- placeholder: https://uid.push.ft07.com/send/sendKey.send
- required: true
- tags:
- title: 标签Tags
- component:
- name: a-select
- vModel: value
- mode: tags
- open: false
- helper: 支持多个,回车后填写下一个
- required: false
- short:
- title: short
- required: false
- skipSslVerify:
- title: 忽略证书校验
- value: false
- component:
- name: a-switch
- vModel: checked
- required: false
-type: builtIn
-pluginType: notification
-scriptFilePath: ../../../plugins/plugin-notification/serverchan3/index.js
diff --git a/packages/ui/certd-server/metadata/notification_slack.yaml b/packages/ui/certd-server/metadata/notification_slack.yaml
deleted file mode 100644
index 29af1cc69..000000000
--- a/packages/ui/certd-server/metadata/notification_slack.yaml
+++ /dev/null
@@ -1,30 +0,0 @@
-name: slack
-title: Slack通知
-desc: Slack消息推送通知
-needPlus: true
-input:
- webhook:
- title: webhook地址
- component:
- placeholder: >-
- https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX
- helper: >-
- [APPS](https://api.slack.com/apps/)->进入APP->incoming-webhooks->Add New
- Webhook to Workspace
- required: true
- httpsProxy:
- title: 代理
- component:
- placeholder: http://xxxxx:xx
- helper: 使用https_proxy
- required: false
- skipSslVerify:
- title: 忽略证书校验
- value: false
- component:
- name: a-switch
- vModel: checked
- required: false
-type: builtIn
-pluginType: notification
-scriptFilePath: ../../../plugins/plugin-notification/slack/index.js
diff --git a/packages/ui/certd-server/metadata/notification_telegram.yaml b/packages/ui/certd-server/metadata/notification_telegram.yaml
deleted file mode 100644
index 5ade9f4bd..000000000
--- a/packages/ui/certd-server/metadata/notification_telegram.yaml
+++ /dev/null
@@ -1,39 +0,0 @@
-name: telegram
-title: Telegram通知
-desc: Telegram Bot推送通知
-needPlus: true
-input:
- endpoint:
- title: URL
- value: https://api.telegram.org
- component:
- placeholder: https://api.telegram.org
- required: true
- botToken:
- title: Bot Token
- component:
- placeholder: 123456789:ABCdefGhijklmnopqrstUVWXyz
- helper: '[token获取](https://core.telegram.org/bots/features#botfather)'
- required: true
- chatId:
- title: 聊天ID
- component:
- placeholder: 聊天ID,例如 123456789 或 @channelusername
- helper: 用户ID(纯数字)或频道名称(@xxxx)
- required: true
- httpsProxy:
- title: 代理
- component:
- placeholder: http://xxxxx:xx
- helper: 使用https_proxy
- required: false
- skipSslVerify:
- title: 忽略证书校验
- value: false
- component:
- name: a-switch
- vModel: checked
- required: false
-type: builtIn
-pluginType: notification
-scriptFilePath: ../../../plugins/plugin-notification/telegram/index.js
diff --git a/packages/ui/certd-server/metadata/notification_vocechat.yaml b/packages/ui/certd-server/metadata/notification_vocechat.yaml
deleted file mode 100644
index bcfd9a080..000000000
--- a/packages/ui/certd-server/metadata/notification_vocechat.yaml
+++ /dev/null
@@ -1,43 +0,0 @@
-name: vocechat
-title: VoceChat通知
-desc: https://voce.chat
-needPlus: true
-input:
- endpoint:
- title: 服务地址
- component:
- placeholder: https://replace.your.domain
- required: true
- apiKey:
- title: apiKey
- component:
- placeholder: ''
- helper: '[获取APIKEY](https://doc.voce.chat/bot/bot-and-webhook)'
- required: true
- targetType:
- title: 目标类型
- component:
- name: a-select
- options:
- - value: user
- label: 用户
- - value: channel
- label: 频道
- required: true
- helper: 发送消息的目标类型
- targetId:
- title: 目标ID
- component:
- placeholder: 发送消息的目标ID
- required: true
- helper: 目标ID可以是用户ID或频道ID
- skipSslVerify:
- title: 忽略证书校验
- value: false
- component:
- name: a-switch
- vModel: checked
- required: false
-type: builtIn
-pluginType: notification
-scriptFilePath: ../../../plugins/plugin-notification/vocechat/index.js
diff --git a/packages/ui/certd-server/metadata/notification_webhook.yaml b/packages/ui/certd-server/metadata/notification_webhook.yaml
deleted file mode 100644
index 05585fb44..000000000
--- a/packages/ui/certd-server/metadata/notification_webhook.yaml
+++ /dev/null
@@ -1,75 +0,0 @@
-name: webhook
-title: 自定义webhook
-desc: 根据模版自定义http请求
-input:
- webhook:
- title: webhook地址
- component:
- placeholder: https://xxxxx.com/xxxx
- col:
- span: 24
- required: true
- method:
- title: 请求方式
- value: POST
- component:
- name: a-select
- placeholder: post/put/get
- options:
- - value: POST
- label: POST
- - value: PUT
- label: PUT
- - value: GET
- label: GET
- required: true
- contentType:
- title: ContentType
- value: application/json
- component:
- name: a-auto-complete
- options:
- - value: application/json
- label: application/json
- - value: application/x-www-form-urlencoded
- label: application/x-www-form-urlencoded
- helper: 也可以自定义填写
- required: true
- headers:
- title: Headers
- component:
- name: a-textarea
- vModel: value
- rows: 2
- col:
- span: 24
- helper: 一行一个,格式为key=value
- required: false
- template:
- title: 消息body模版
- value: |-
- {
- "title":"{title}",
- "content":"{content}\n[查看详情]({url})"
- }
- component:
- name: a-textarea
- rows: 4
- col:
- span: 24
- helper: |-
- 根据对应的webhook接口文档,构建一个json对象作为参数(默认值只是一个示例,一般不是正确的参数)
- 支持变量:{title}、{content}、{url},变量用{}包裹
- 字符串需要双引号,使用\n换行
- 如果是get方式,将作为query参数拼接到url上
- required: true
- skipSslVerify:
- title: 忽略证书校验
- value: false
- component:
- name: a-switch
- vModel: checked
- required: false
-type: builtIn
-pluginType: notification
-scriptFilePath: ../../../plugins/plugin-notification/webhook/index.js
diff --git a/packages/ui/certd-server/metadata/undefined_geetest.yaml b/packages/ui/certd-server/metadata/undefined_geetest.yaml
new file mode 100644
index 000000000..fd814755b
--- /dev/null
+++ b/packages/ui/certd-server/metadata/undefined_geetest.yaml
@@ -0,0 +1,21 @@
+addonType: captcha
+name: geetest
+title: 极验验证码v4
+desc: ''
+showTest: false
+input:
+ captchaId:
+ title: 验证ID
+ component:
+ placeholder: captchaId
+ helper: >-
+ [极验验证码v4](https://console.geetest.com/sensbot/management) -> 创建业务模块 ->
+ 新增业务场景
+ required: true
+ captchaKey:
+ title: 验证Key
+ component:
+ placeholder: captchaKey
+ required: true
+type: builtIn
+scriptFilePath: ../../../plugins/plugin-captcha/index.js
diff --git a/packages/ui/certd-server/metadata/undefined_image.yaml b/packages/ui/certd-server/metadata/undefined_image.yaml
new file mode 100644
index 000000000..457172700
--- /dev/null
+++ b/packages/ui/certd-server/metadata/undefined_image.yaml
@@ -0,0 +1,8 @@
+addonType: captcha
+name: image
+title: 图片验证码
+desc: ''
+showTest: false
+input: {}
+type: builtIn
+scriptFilePath: ../../../plugins/plugin-captcha/index.js
diff --git a/packages/ui/certd-server/metadata/undefined_tencent.yaml b/packages/ui/certd-server/metadata/undefined_tencent.yaml
new file mode 100644
index 000000000..2a566b8b0
--- /dev/null
+++ b/packages/ui/certd-server/metadata/undefined_tencent.yaml
@@ -0,0 +1,30 @@
+addonType: captcha
+name: tencent
+title: 腾讯云验证码
+desc: ''
+showTest: false
+input:
+ accessId:
+ title: 腾讯云授权
+ helper: 腾讯云授权
+ component:
+ name: access-selector
+ vModel: modelValue
+ from: sys
+ type: tencent
+ required: true
+ captchaAppId:
+ title: 验证ID
+ component:
+ name: a-input-number
+ placeholder: CaptchaAppId
+ helper: >-
+ [腾讯云验证码](https://cloud.tencent.com/act/cps/redirect?redirect=37716&cps_key=b3ef73330335d7a6efa4a4bbeeb6b2c9)
+ required: true
+ appSecretKey:
+ title: 验证Key
+ component:
+ placeholder: AppSecretKey
+ required: true
+type: builtIn
+scriptFilePath: ../../../plugins/plugin-captcha/tencent/index.js
diff --git a/packages/ui/certd-server/src/modules/auto/auto-b-load-plugins.ts b/packages/ui/certd-server/src/modules/auto/auto-b-load-plugins.ts
index 16667d417..ba76300e0 100644
--- a/packages/ui/certd-server/src/modules/auto/auto-b-load-plugins.ts
+++ b/packages/ui/certd-server/src/modules/auto/auto-b-load-plugins.ts
@@ -12,8 +12,8 @@ export class AutoBLoadPlugins {
@Init()
async init() {
logger.info('加载插件开始');
- // await this.pluginService.registerFromLocal("./metadata")
- await import("../../plugins/index.js")
+ await this.pluginService.registerFromLocal("./metadata")
+ // await import("../../plugins/index.js")
await this.pluginService.registerFromDb()
logger.info('加载插件完成');
diff --git a/packages/ui/certd-server/src/modules/auto/auto-z.ts b/packages/ui/certd-server/src/modules/auto/auto-z.ts
index 0427b16e0..19e6f7db9 100644
--- a/packages/ui/certd-server/src/modules/auto/auto-z.ts
+++ b/packages/ui/certd-server/src/modules/auto/auto-z.ts
@@ -47,10 +47,12 @@ export class AutoZPrint {
function format(bytes: any) {
return (bytes / 1024 / 1024).toFixed(2) + ' MB';
}
- setInterval(() => {
+ function printHeapLog() {
const mu = process.memoryUsage();
logger.info(`rss:${format(mu.rss)},heapUsed: ${format(mu.heapUsed)},heapTotal: ${format(mu.heapTotal)},external: ${format(mu.external)},arrayBuffers: ${format(mu.arrayBuffers)}`);
- }, 20000);
+ }
+ setInterval(printHeapLog, 20000);
+ printHeapLog();
}
startHttpsServer() {
diff --git a/packages/ui/certd-server/tsconfig.json b/packages/ui/certd-server/tsconfig.json
index a1f4e6982..dc47c8f2c 100644
--- a/packages/ui/certd-server/tsconfig.json
+++ b/packages/ui/certd-server/tsconfig.json
@@ -7,7 +7,8 @@
"esModuleInterop": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
- "inlineSourceMap":true,
+ "sourceMap": false,
+ "inlineSourceMap": false,
"noImplicitThis": true,
"noUnusedLocals": true,
"stripInternal": true,