$ npm install uba-server-proxy -D
Edit the .ubarc
file
{
"proxy": [{
"url": "/api",
"options": {
"target": "http://cnodejs.org",
"changeOrigin": true,
"logLevel": "debug"
}
}, {
"url": ["/users", "/orgs"],
"options": {
"target": "https://api.github.com",
"changeOrigin": true,
"logLevel": "debug"
}
}]
}
Look at more https://www.npmjs.com/package/http-proxy-middleware#options