Skip to content

Commit 8bcea48

Browse files
authored
Merge pull request #17 from minorcell/djh
Set Qiniu storage zone to East China (z0) region in upload service
2 parents d1e3734 + d9cf91c commit 8bcea48

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/upload/upload.service.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ export class UploadService {
2323
this.configService.get('kodo.SECRET_KEY'),
2424
);
2525
this.config = new qiniu.conf.Config();
26+
// 设置存储区域
27+
this.config.zone = qiniu.zone.Zone_z0; // 根据你的空间所在的区域选择:华东(z0)、华北(z1)、华南(z2)、北美(na0)等
2628
this.bucketManager = new qiniu.rs.BucketManager(this.mac, this.config);
2729
const putPolicy = new qiniu.rs.PutPolicy({
2830
scope: this.configService.get('kodo.BUCKET'),

0 commit comments

Comments
 (0)