egg-proxy-b

1.0.2 • Public • Published

egg-proxy

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

Install

$ npm i egg-proxy --save

Usage

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

Configuration

// {app_root}/config/config.default.js
exports.proxy = {
  host: 'http://localhost:9000', // target host that matched path will be proxy to
  match: /\/assets/ // path pattern or function.
};

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

Example

Questions & Suggestions

Please open an issue here.

License

MIT

Package Sidebar

Install

npm i egg-proxy-b

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

6.96 kB

Total Files

8

Last publish

Collaborators

  • l1ud0ngq1