$ npm install uba-server-proxy -DEdit 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
