mirror of
https://github.com/certd/certd.git
synced 2026-04-30 09:17:24 +08:00
fix: 修复部署到华为obs 报错的bug
This commit is contained in:
@@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
> 如果出现过: 100.25.1.5 , 100.25.4.8
|
> 如果出现过: 100.25.1.5 , 100.25.4.8
|
||||||
>
|
>
|
||||||
> 可以尝试配置 100.25.*.5
|
> 可以尝试配置 100.25.*.*
|
||||||
|
|
||||||
## 二、nginx代理方案
|
## 二、nginx代理方案
|
||||||
|
|
||||||
|
|||||||
@@ -170,13 +170,15 @@ export class HauweiDeployCertToOBS extends AbstractTaskPlugin {
|
|||||||
const params:any = {
|
const params:any = {
|
||||||
Bucket: bucket,
|
Bucket: bucket,
|
||||||
DomainName: domain,
|
DomainName: domain,
|
||||||
Name: this.buildCertName( domain)
|
DomainBody:{
|
||||||
|
Name: this.buildCertName( domain),
|
||||||
|
}
|
||||||
};
|
};
|
||||||
if (typeof cert === 'string'){
|
if (typeof cert === 'string'){
|
||||||
params.CertificateId= cert
|
params.DomainBody.CertificateId= cert
|
||||||
}else{
|
}else{
|
||||||
params.Certificate= cert.crt
|
params.DomainBody.Certificate= cert.crt
|
||||||
params.PrivateKey = cert.key
|
params.DomainBody.PrivateKey = cert.key
|
||||||
}
|
}
|
||||||
const res = await obsClient.setBucketCustomDomain(params)
|
const res = await obsClient.setBucketCustomDomain(params)
|
||||||
this.checkRet(res)
|
this.checkRet(res)
|
||||||
|
|||||||
Reference in New Issue
Block a user