@@ -159,7 +159,7 @@ const store = new OSSObject({
159159 accessKeyId: ' your access key' ,
160160 accessKeySecret: ' your access secret' ,
161161 bucket: ' your bucket name' ,
162- region: ' oss-cn-hangzhou'
162+ region: ' oss-cn-hangzhou' ,
163163});
164164```
165165
@@ -175,20 +175,23 @@ const store = new OSSObject({
175175 accessKeyId: ' your access key' ,
176176 accessKeySecret: ' your access secret' ,
177177 bucket: ' your bucket name' ,
178- endpoint: ' oss-accelerate.aliyuncs.com' ,
178+ endpoint: ' https:// oss-accelerate.aliyuncs.com' ,
179179});
180180```
181181
1821823 . use custom domain
183183
184+ See https://help.aliyun.com/zh/oss/user-guide/map-custom-domain-names-5
185+
184186``` js
185187const { OSSObject } = require (' oss-client' );
186188
187189const store = new OSSObject ({
188190 accessKeyId: ' your access key' ,
189191 accessKeySecret: ' your access secret' ,
190192 cname: true ,
191- endpoint: ' your custome domain' ,
193+ // your custom domain endpoint
194+ endpoint: ' https://my-static.domain.com' ,
192195});
193196```
194197
@@ -1629,19 +1632,8 @@ RequestError | -1 | network error | 网络出现中断或异常
16291632ConnectionTimeoutError | -2 | request connect timeout | 请求连接超时
16301633SecurityTokenExpired | 403 | sts Security Token Expired | sts Security Token 超时失效
16311634
1632- <!-- GITCONTRIBUTOR_START -->
1633-
16341635## Contributors
16351636
1636- |[<img src=" https: // avatars.githubusercontent.com/u/1611647?v=4" width="100px;"/><br/><sub><b>PeterRao</b></sub>](https://github.com/PeterRao)<br/>|[<img src="https://avatars.githubusercontent.com/u/1209779?v=4" width="100px;"/><br/><sub><b>rockuw</b></sub>](https://github.com/rockuw)<br/>|[<img src="https://avatars.githubusercontent.com/u/156269?v=4" width="100px;"/><br/><sub><b>fengmk2</b></sub>](https://github.com/fengmk2)<br/>|[<img src="https://avatars.githubusercontent.com/u/985607?v=4" width="100px;"/><br/><sub><b>dead-horse</b></sub>](https://github.com/dead-horse)<br/>|[<img src="https://avatars.githubusercontent.com/u/24582204?v=4" width="100px;"/><br/><sub><b>taotao7</b></sub>](https://github.com/taotao7)<br/>|[<img src="https://avatars.githubusercontent.com/u/19388725?v=4" width="100px;"/><br/><sub><b>weiyie</b></sub>](https://github.com/weiyie)<br/>|
1637- | : -- - : | : -- - : | : -- - : | : -- - : | : -- - : | : -- - : |
1638- | [< img src= " https://avatars.githubusercontent.com/u/5886725?v=4" width= " 100px;" / >< br/ >< sub>< b> binghaiwang< / b>< / sub> ](https: // github.com/binghaiwang)<br/>|[<img src="https://avatars.githubusercontent.com/u/14790466?v=4" width="100px;"/><br/><sub><b>greenkeeperio-bot</b></sub>](https://github.com/greenkeeperio-bot)<br/>|[<img src="https://avatars.githubusercontent.com/u/5653578?v=4" width="100px;"/><br/><sub><b>luozhang002</b></sub>](https://github.com/luozhang002)<br/>|[<img src="https://avatars.githubusercontent.com/u/17213005?v=4" width="100px;"/><br/><sub><b>beajer</b></sub>](https://github.com/beajer)<br/>|[<img src="https://avatars.githubusercontent.com/u/17476119?v=4" width="100px;"/><br/><sub><b>mars-coder</b></sub>](https://github.com/mars-coder)<br/>|[<img src="https://avatars.githubusercontent.com/u/4757625?v=4" width="100px;"/><br/><sub><b>duan007a</b></sub>](https://github.com/duan007a)<br/>|
1639- | [< img src= " https://avatars.githubusercontent.com/u/33024188?v=4" width= " 100px;" / >< br/ >< sub>< b> Ari1c< / b>< / sub> ](https: // github.com/Ari1c)<br/>|[<img src="https://avatars.githubusercontent.com/u/20496894?v=4" width="100px;"/><br/><sub><b>Pedestrian93</b></sub>](https://github.com/Pedestrian93)<br/>|[<img src="https://avatars.githubusercontent.com/u/13463883?v=4" width="100px;"/><br/><sub><b>microJ</b></sub>](https://github.com/microJ)<br/>|[<img src="https://avatars.githubusercontent.com/u/19716675?v=4" width="100px;"/><br/><sub><b>aloisklink</b></sub>](https://github.com/aloisklink)<br/>|[<img src="https://avatars.githubusercontent.com/u/360661?v=4" width="100px;"/><br/><sub><b>popomore</b></sub>](https://github.com/popomore)<br/>|[<img src="https://avatars.githubusercontent.com/u/32174276?v=4" width="100px;"/><br/><sub><b>semantic-release-bot</b></sub>](https://github.com/semantic-release-bot)<br/>|
1640- | [< img src= " https://avatars.githubusercontent.com/u/12809715?v=4" width= " 100px;" / >< br/ >< sub>< b> 1019272778 < / b>< / sub> ](https: // github.com/1019272778)<br/>|[<img src="https://avatars.githubusercontent.com/u/863754?v=4" width="100px;"/><br/><sub><b>zensh</b></sub>](https://github.com/zensh)<br/>|[<img src="https://avatars.githubusercontent.com/u/340282?v=4" width="100px;"/><br/><sub><b>fool2fish</b></sub>](https://github.com/fool2fish)<br/>|[<img src="https://avatars.githubusercontent.com/u/8952081?v=4" width="100px;"/><br/><sub><b>AviVahl</b></sub>](https://github.com/AviVahl)<br/>|[<img src="https://avatars.githubusercontent.com/u/5139554?v=4" width="100px;"/><br/><sub><b>danielwpz</b></sub>](https://github.com/danielwpz)<br/>|[<img src="https://avatars.githubusercontent.com/u/19678627?v=4" width="100px;"/><br/><sub><b>tianniu0106</b></sub>](https://github.com/tianniu0106)<br/>|
1641- | [< img src= " https://avatars.githubusercontent.com/u/327019?v=4" width= " 100px;" / >< br/ >< sub>< b> JacksonTian< / b>< / sub> ](https: // github.com/JacksonTian)<br/>|[<img src="https://avatars.githubusercontent.com/u/440651?v=4" width="100px;"/><br/><sub><b>jackytck</b></sub>](https://github.com/jackytck)<br/>|[<img src="https://avatars.githubusercontent.com/u/3422918?v=4" width="100px;"/><br/><sub><b>leoliew</b></sub>](https://github.com/leoliew)<br/>|[<img src="https://avatars.githubusercontent.com/u/103457?v=4" width="100px;"/><br/><sub><b>lfeng</b></sub>](https://github.com/lfeng)<br/>|[<img src="https://avatars.githubusercontent.com/u/19733683?v=4" width="100px;"/><br/><sub><b>snyk-bot</b></sub>](https://github.com/snyk-bot)<br/>|[<img src="https://avatars.githubusercontent.com/u/30425185?v=4" width="100px;"/><br/><sub><b>yupeng-yuxiaoyu</b></sub>](https://github.com/yupeng-yuxiaoyu)<br/>|
1642- | [< img src= " https://avatars.githubusercontent.com/u/99770068?v=4" width= " 100px;" / >< br/ >< sub>< b> sartoshi- foot- dao< / b>< / sub> ](https: // github.com/sartoshi-foot-dao)<br/>|[<img src="https://avatars.githubusercontent.com/u/5172747?v=4" width="100px;"/><br/><sub><b>chay-xu</b></sub>](https://github.com/chay-xu)<br/>|[<img src="https://avatars.githubusercontent.com/u/4565306?v=4" width="100px;"/><br/><sub><b>chunpu</b></sub>](https://github.com/chunpu)<br/>|[<img src="https://avatars.githubusercontent.com/in/29110?v=4" width="100px;"/><br/><sub><b>dependabot[bot]</b></sub>](https://github.com/apps/dependabot)<br/>|[<img src="https://avatars.githubusercontent.com/u/7284558?v=4" width="100px;"/><br/><sub><b>duncup</b></sub>](https://github.com/duncup)<br/>|[<img src="https://avatars.githubusercontent.com/u/416060?v=4" width="100px;"/><br/><sub><b>qin</b></sub>](https://github.com/qin)<br/>|
1643- [< img src= " https://avatars.githubusercontent.com/u/17328761?v=4" width= " 100px;" / >< br/ >< sub>< b> rdwh< / b>< / sub> ](https: // github.com/rdwh)<br/>|[<img src="https://avatars.githubusercontent.com/u/25103518?v=4" width="100px;"/><br/><sub><b>richex-cn</b></sub>](https://github.com/richex-cn)<br/>|[<img src="https://avatars.githubusercontent.com/u/45714422?v=4" width="100px;"/><br/><sub><b>hengshanMWC</b></sub>](https://github.com/hengshanMWC)<br/>
1644-
1645- This project follows the git- contributor [spec](https: // github.com/xudafeng/git-contributor), auto updated at `Sat Sep 16 2023 01:02:55 GMT+0800`.
1637+ [](https://github.com/node-modules/oss-client/graphs/contributors)
16461638
1647- <!-- GITCONTRIBUTOR_END -->
1639+ Made with [contributors-img](https://contrib.rocks).
0 commit comments