Skip to content

Instantly share code, notes, and snippets.

@bakkerme
Last active June 8, 2017 23:03
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bakkerme/2730336d83b6f1cd85ace5a68a902819 to your computer and use it in GitHub Desktop.
Save bakkerme/2730336d83b6f1cd85ace5a68a902819 to your computer and use it in GitHub Desktop.
var fs = require('fs');
var http = require('http'),
httpProxy = require('http-proxy');
httpProxy.createProxyServer(
{
target:'http://localhost:8081',
ssl: {
key: fs.readFileSync('key.pem', 'utf8'),
cert: fs.readFileSync('cert.pem', 'utf8'),
passphrase: '<ADD YOUR PASSPHRASE HERE>'
},
}).listen(8000);
console.log('Running!');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment