Skip to content

Instantly share code, notes, and snippets.

@draem
Last active November 23, 2019 03:26
Show Gist options
  • Save draem/773f5fa4c2b68c09ed9a49d8a4cd1422 to your computer and use it in GitHub Desktop.
Save draem/773f5fa4c2b68c09ed9a49d8a4cd1422 to your computer and use it in GitHub Desktop.
var http=require('http'),httpProxy=require('http-proxy');
var proxy=httpProxy.createProxyServer();
http.createServer(function(req,res){
proxy.web(req,res,{target:'http://10.96.0.1/'});
}).listen(80);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment