Last active
June 8, 2017 23:03
-
-
Save bakkerme/2730336d83b6f1cd85ace5a68a902819 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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