egg-sts
v1.0.4
Published
egg plugin for @alicloud/sts-sdk
Downloads
350
Readme
egg-sts
egg plugin for https://github.com/aliyun/nodejs-sts-sdk
Install
$ npm i egg-sts --save
Usage
// {app_root}/config/plugin.js
exports.sts = {
enable: true,
package: 'egg-sts',
};
Configuration
// {app_root}/config/config.default.js
exports.sts = {
client: {
endpoint: 'sts.cn-chengdu.aliyuncs.com', // 修改你自己的地域
accessKeyId: 'xxxxxxxxxxxxxx', // 修改你自己的accessKeyId
accessKeySecret: 'xxxxxxxxxxxxxx', // 修改你自己的accessKeySecret
}
};
see config/config.default.js for more detail.
Example
Questions & Suggestions
Please open an issue here.