egg-proxy2
v0.0.4
Published
proxy plugin for egg
Downloads
5
Maintainers
Readme
egg-proxy
Install
$ npm i egg-proxy --save
Usage
// {app_root}/config/plugin.js
exports.proxy = {
enable: true,
package: 'egg-proxy',
};
Configuration
// {app_root}/config/config.default.js
exports.proxy = [{
host: 'http://localhost:3000', // target host that matched path will be proxy to
match: /\/assets/ // path pattern.
rewrite : {
'/api' : '' //replace URL
}
}];
see config/config.default.js for more detail.
Example
Questions & Suggestions
Please Email to [email protected] or QQ to me derect