NOS(Netease Object Storage) is a cloud storage platform based on a distributed file system. Users can easily upload and download files of various sizes through a simple RESTful API on various platforms, and can easily view resource usage statistics. Now it is only for internal users, in the future will be open to external users.
- Step 1: Apply a barrel
Go to the NOS service platform to apply a barrel. In there you will get the config. such as
in the public mode:
"nos": {
"urlPath": "",
"host": "",
"accessKey": "",
"secretKey": "",
"bucket": "",
"public": true
}
in the private mode:
"nos": {
"urlPath": "",
"host": "",
"accessKey": "",
"secretKey": "",
"public": false,
"expires":4619733671,
"bucket": ""
}
- Step 2: Look up the Examples
download the code from the repository named easynode-template and check out the branch named nos.
git clone https://github.com/easynode/easynode-template.git
git checkout origin/nos