egg-ali-rabbitmq
v1.2.0
Published
[![NPM version][npm-image]][npm-url] [![build status][travis-image]][travis-url] [![npm download][download-image]][download-url]
Downloads
18
Maintainers
Readme
egg-ali-rabbitmq
Install
$ npm i egg-ali-rabbitmq --save
Usage
// {app_root}/config/plugin.js
exports.default = {
enable: true,
package: 'egg-ali-rabbitmq',
};
Configuration
// {app_root}/config/config.default.js
exports.rabbitmq = {
url: 'HOST URL',
vhost: 'VHOST',
accessKeyId: 'ALIYUN ACCESS KEY ID',
accessKeySecret: 'ALIYUN ACCESS KEY SECRET',
instance: 'INSTANCE ID',
options: {
heartbeat: 30,
},
};
see config/config.default.js for more detail.