egg-alicloud-mns
v1.1.1
Published
Alicloud MNS plugin for egg
Downloads
13
Maintainers
Readme
egg-alicloud-mns
Read this in other languages: 简体中文
Install
$ npm i egg-alicloud-mns --save
Alicloud MNS Plugin for egg, support egg application access to Aliyun MNS.
This plugin is based on mns-nodejs-sdk, please check the document of mns-nodejs-sdk for API details.
Usage
// {app_root}/config/plugin.js
exports.alicloudMns = {
enable: true,
package: 'egg-alicloud-mns',
};
Configuration
// {app_root}/config/config.default.js
exports.alicloudMns = {
client: {
accountId: '',
accessKeyId: '',
secretAccessKey: '',
region: '', // e.g. 'cn-hangzhou',
secure: true, // use https or http
internal: false, // use internal endpoint
vpc: false, // use vpc endpoint
},
};
See config/config.default.js for more details.
Questions & Suggestions
Please open an issue here.