Created
May 3, 2013 22:29
-
-
Save lloyd/5514735 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
#!/usr/bin/env node | |
var httpProxy = require('http-proxy'), | |
path = require('path'), | |
fs = require('fs'); | |
httpProxy.createServer(443, 'login.persona.org', { | |
https: { | |
key: fs.readFileSync(path.join(process.env['HOME'], 'key.pem'), 'utf8'), | |
cert: fs.readFileSync(path.join(process.env['HOME'], 'cert.pem'), 'utf8') | |
}, | |
target: { | |
https: true, | |
rejectUnauthorized: false | |
} | |
}).listen(8443); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment