Skip to content

Latest commit

 

History

History
60 lines (43 loc) · 1.26 KB

README.en.md

File metadata and controls

60 lines (43 loc) · 1.26 KB

egg-alicloud-mns

NPM version

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.

License

MIT