Skip to content

Instantly share code, notes, and snippets.

@alexstrat
Created April 26, 2012 13:31
Show Gist options
  • Save alexstrat/2499587 to your computer and use it in GitHub Desktop.
Save alexstrat/2499587 to your computer and use it in GitHub Desktop.
proxy-server
httpProxy = require('http-proxy');
httpProxy.createServer({
router: {
//UI
'kadoh.fr.nf' : '127.0.0.1:8080',
//bosh
'bosh.kadoh.fr.nf' : '127.0.0.1:5280',
//cube
'collector.kadoh.fr.nf' : '127.0.0.1:1080',
'evaluator.kadoh.fr.nf' : '127.0.0.1:1081'
}}).listen(80);
@jinroh
Copy link

jinroh commented Apr 26, 2012

git clone git://gist.github.com/2499587.git proxy-server
cd proxy-server && npm install http-proxy
forever start index.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment