Skip to content

Instantly share code, notes, and snippets.

@draem
Created November 20, 2019 01:51
Show Gist options
  • Save draem/535c0b55dbf57874a483cf0b363ec3db to your computer and use it in GitHub Desktop.
Save draem/535c0b55dbf57874a483cf0b363ec3db 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://minehut-network-api:3002/'});
}).listen(3000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment