pGNFOG6TDq3TBwe98o55H changeset

Changeset333433626264 (b)
ParentNone (a)
ab
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);
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- Revision None
+++ Revision 333433626264
@@ -0,0 +1,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);