egg-ocean-proxy
v1.0.0
Published
egg-plugin http-proxy
Downloads
2
Readme
egg-ocean-proxy
Install
$ npm i egg-ocean-proxy --save
Usage
// {app_root}/config/plugin.js
exports.httpproxy = {
enable: true,
package: 'egg-ocean-proxy',
};
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.