fix: COS 自定义域名空值时回退到原生域名
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 45s
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 45s
- CosStorageProvider 初始化时 Domain 为空不再传入 SDK - 原生 COS 域名 (cos.ap-beijing.myqcloud.com) 有有效 TLS 证书 - 生产环境移除 STORAGE_COS_DOMAIN 配置 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
parent
b9e6055400
commit
859156a59b
@ -33,7 +33,7 @@ export class CosStorageProvider {
|
|||||||
this.cos = new COS({
|
this.cos = new COS({
|
||||||
SecretId: secretId,
|
SecretId: secretId,
|
||||||
SecretKey: secretKey,
|
SecretKey: secretKey,
|
||||||
Domain: domain,
|
...(domain ? { Domain: domain } : {}),
|
||||||
Protocol: 'https:',
|
Protocol: 'https:',
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user