Skip to content

Instantly share code, notes, and snippets.

@bakkerme bakkerme/proxy.js
Last active Jun 8, 2017

Embed
What would you like to do?
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
You can’t perform that action at this time.