var httpProxy = require('http-proxy'),
fs = require('fs');
console.log("proxy");
var options = {
target: "https://localhost",
ssl: {
key: fs.readFileSync('./ssl/key.pem'),
cert: fs.readFileSync('./ssl/cert.pem')
},
ws: true,
secure: true,
xfwd: true
};
var proxy = httpProxy.createServer(options);
proxy.listen(80);