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