Files
2018-06-18 12:11:01 +08:00

832 B
Executable File
Raw Permalink Blame History

A simple app server using STS

App Server一般作为一个企业的应用服务器它管理着OSS的 AccessKeyId/AccessKeySecret服务于众多的客户端。当客户端移动端 /Web/Client等需要访问OSS时它们向App Server请求一个临时的token并 利用这个token从OSS下载或者向OSS上传文件。

App Server可以实现更复杂的策略为不同的客户端提供不同权限的token隔 离不同的客户端的存储路径等。

使用参考:https://help.aliyun.com/document_detail/oss/practice/ram_guide_dir/no_user_accout.html

Run

Checkout code

git clone https://github.com/rockuw/node-sts-app-server.git
cd node-sts-app-server

Install dependencies

npm install

Start server

node index.js

Open in your browser

http://localhost:3000/