1.0.2 • Published 3 years ago

egg-nacos-plugin v1.0.2

Weekly downloads
5
License
MIT
Repository
github
Last release
3 years ago

egg-nacos-plugin

NPM version build status Test coverage David deps Known Vulnerabilities npm download

Install

$ npm i egg-nacos-plugin --save

Usage

// {app_root}/config/plugin.js
exports.nacosPlugin = {
  enable: true,
  package: 'egg-nacos-plugin',
};

Configuration

// {app_root}/config/config.default.js
exports.nacosPlugin = {
    provider: {
        namespace: '', // 命名空间
        serviceName: '', // 服务名
        groupName: '', // 组名 默认DEFAULT_GROUP
        port: '', // 端口号
    },
    nacosServer: {
        address: '', // 注册的nacos地址
    },
};

see config/config.default.js for more detail.

Example

Questions & Suggestions

Please open an issue here.

License

MIT

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago