egg-ms-eureka
v1.0.5
Published
[![NPM version][npm-image]][npm-url] [![build status][travis-image]][travis-url] [![Test coverage][codecov-image]][codecov-url] [![David deps][david-image]][david-url] [![Known Vulnerabilities][snyk-image]][snyk-url] [![npm download][download-image]][down
Downloads
9
Maintainers
Readme
egg-ms-eureka
Install
$ npm i egg-ms-eureka --save
Usage
// {app_root}/config/plugin.js
exports.msEureka = {
enable: true,
package: 'egg-ms-eureka',
};
Configuration
// {app_root}/config/config.default.js
exports.msEureka = {
eureka: {
serviceUrl: [ 'http://192.168.200.111:8761', 'http://192.168.200.112:8761' ],
registerWithEureka: false,
fetchRegistry: true,
inspectIntervalInSecs: 30 * 1000,
proxy: { host: '111.152.57.29', port: 39083 }, // eureka和服务不在一个网络,可以使用代理
},
instance: {
app: ulmp,
ipAddr: '192.168.0.1',
port: 7004,
},
};
see config/config.default.js for more detail.
Example
Questions & Suggestions
Please open an issue here.