Skip to content

Commit 05c6679

Browse files
authored
Merge pull request #400 from qiniu/features/add-zone-east2-northeast1
add Zones cn-east-2, ap-seoul-1
2 parents 74035c0 + 4bf95c8 commit 05c6679

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

qiniu/zone.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,16 @@ exports.Zone_z0 = new conf.Zone([
1212
'rsf.qbox.me',
1313
'api.qiniuapi.com');
1414

15+
// huadong2
16+
exports.Zone_cn_east_2 = new conf.Zone([
17+
'up-cn-east-2.qiniup.com'
18+
], [
19+
'upload-cn-east-2.qiniup.com'
20+
], 'iovip-cn-east-2.qiniuio.com',
21+
'rs-cn-east-2.qiniuapi.com',
22+
'rsf-cn-east-2.qiniuapi.com',
23+
'api-cn-east-2.qiniuapi.com');
24+
1525
// huabei
1626
exports.Zone_z1 = new conf.Zone([
1727
'up-z1.qiniup.com'
@@ -42,6 +52,7 @@ exports.Zone_na0 = new conf.Zone([
4252
'rsf-na0.qbox.me',
4353
'api-na0.qiniuapi.com');
4454

55+
// singapore
4556
exports.Zone_as0 = new conf.Zone([
4657
'up-as0.qiniup.com'
4758
], [
@@ -51,6 +62,16 @@ exports.Zone_as0 = new conf.Zone([
5162
'rsf-as0.qbox.me',
5263
'api-as0.qiniuapi.com');
5364

65+
// seoul
66+
exports.Zone_ap_northeast_1 = new conf.Zone([
67+
'up-ap-northeast-1.qiniup.com'
68+
], [
69+
'upload-ap-northeast-1.qiniup.com'
70+
], 'iovip-ap-northeast-1.qiniuio.com',
71+
'rs-ap-northeast-1.qiniuapi.com',
72+
'rsf-ap-northeast-1.qiniuapi.com',
73+
'api-ap-northeast-1.qiniuapi.com');
74+
5475
exports.getZoneInfo = function (accessKey, bucket, callbackFunc) {
5576
const apiAddr = util.format(
5677
'https://uc.qbox.me/v2/query?ak=%s&bucket=%s',

0 commit comments

Comments
 (0)