pGNFOG6TDq3TBwe98o55H changeset
Changeset | 333433626264 (b) |
---|---|
Parent | None (a) |
a | b | ||
---|---|---|---|
0 | + | var httpProxy = require('http-proxy'); | |
0 | + | // | |
0 | + | // Create a proxy server with custom application logic | |
0 | + | // | |
0 | + | httpProxy.createServer(function (req, res, proxy) { | |
0 | + | // | |
0 | + | // Put your custom server logic here | |
0 | + | // | |
0 | + | proxy.proxyRequest(req, res, { | |
0 | + | host: 'jan.iriscouch.com', | |
0 | + | port: 5984 | |
0 | + | }); | |
0 | + | }).listen(8000); | |
... |
|
|