Skip to content

Instantly share code, notes, and snippets.

@spion
Forked from whoeverest/proxy.js
Last active January 4, 2016 06:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spion/8581597 to your computer and use it in GitHub Desktop.
Save spion/8581597 to your computer and use it in GitHub Desktop.
var http = require('http');
var proxy = require('http-proxy').createProxyServer({ target: 'https://192.168.88.167:5000/', secure: false });
http.createServer(proxy.web.bind(proxy))
.on('upgrade', proxy.ws.bind(proxy))
.listen(4433);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment