certd/packages/ui/certd-server/metadata/deploy_CopyToLocal.yaml

170 lines
4.4 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

showRunStrategy: false
default:
strategy:
runStrategy: 1
name: CopyToLocal
title: 主机-复制到本机
icon: solar:copy-bold-duotone
desc: 【仅管理员使用】实际上是复制证书到docker容器内的某个路径需要做目录映射到宿主机
group: host
input:
cert:
title: 域名证书
helper: 请选择前置任务输出的域名证书
component:
name: output-selector
from:
- CertApply
- CertApplyLego
- CertApplyUpload
required: true
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应用
required: true
order: 0
crtPath:
title: 证书保存路径
helper: |-
全链证书,路径要包含文件名
推荐使用相对路径将写入与数据库同级目录无需映射例如tmp/cert.pem
component:
placeholder: tmp/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: tmp/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: |-
用于IIS证书部署路径要包含文件名
推荐使用相对路径将写入与数据库同级目录无需映射例如tmp/cert.pfx
component:
placeholder: tmp/cert.pfx
mergeScript: |2-
return {
show: ctx.compute(({form})=>{
return form.certType === 'pfx';
})
}
required: true
rules:
- type: filepath
order: 0
derPath:
title: DER证书保存路径
helper: |-
用于Apache证书部署路径要包含文件名
推荐使用相对路径将写入与数据库同级目录无需映射例如tmp/cert.der
.der和.cer是相同的东西改个后缀名即可
component:
placeholder: tmp/cert.der 或 tmp/cert.cer
mergeScript: |2-
return {
show: ctx.compute(({form})=>{
return form.certType === 'der';
})
}
required: true
rules:
- type: filepath
order: 0
jksPath:
title: jks证书保存路径
helper: 用于java路径要包含文件名例如tmp/cert.jks
component:
placeholder: tmp/cert.jks
mergeScript: |2-
return {
show: ctx.compute(({form})=>{
return form.certType === 'jks';
})
}
required: true
rules:
- type: filepath
order: 0
output:
hostCrtPath:
title: 证书保存路径
type: HostCrtPath
hostKeyPath:
title: 私钥保存路径
type: HostKeyPath
hostIcPath:
title: 中间证书保存路径
type: HostKeyPath
hostPfxPath:
title: PFX保存路径
type: HostPfxPath
hostDerPath:
title: DER保存路径
type: HostDerPath
hostJksPath:
title: jks保存路径
type: HostJksPath
type: builtIn
pluginType: deploy
scriptFilePath: ../../../plugins/plugin-host/plugin/copy-to-local/index.js