Revision 333433626264 () - Diff

Link to this snippet: https://friendpaste.com/pGNFOG6TDq3TBwe98o55H
Embed:
1
2
3
4
5
6
7
8
9
10
11
12
13
var httpProxy = require('http-proxy');
//
// Create a proxy server with custom application logic
//
httpProxy.createServer(function (req, res, proxy) {
//
// Put your custom server logic here
//
proxy.proxyRequest(req, res, {
host: 'jan.iriscouch.com',
port: 5984
});
}).listen(8000);