1.0.4 • Published 5 years ago

egg-http-proxy2 v1.0.4

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

egg-http-proxy2

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

Powered by the popular Nodejitsu http-proxy. GitHub stars

Install

$ npm i egg-http-proxy2 --save

Usage

// {app_root}/config/plugin.js
exports.httpproxy = {
  enable: true,
  package: 'egg-http-proxy2',
};

Configuration

// {app_root}/config/config.default.js
exports.httpproxy = {
    proxyTable: [
      {
        path: "/risws/",
        proxy: { target: 'http://t.vy01.com/MedTechWebService/', changeOrigin: true },
      },
      {
        path: "/zsapi/",
        proxy: { target: 'http://a.vy01.com/api/', changeOrigin: true },
      }],
};

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

Example

Questions & Suggestions

Please open an issue here.

License

MIT

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago