pmalek
2/1/2014 - 7:06 PM

http-proxy_issue.js

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);