Skip to content

Commit

Permalink
use http by default
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhoksza committed Apr 17, 2018
1 parent 5b1f7b6 commit b95554a
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions server.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
const fs = require('fs');

// Listen on a specific host via the HOST environment variable
var host = process.env.HOST || '0.0.0.0';
// Listen on a specific port via the PORT environment variable
Expand Down Expand Up @@ -44,13 +42,7 @@ cors_proxy.createServer({
httpProxyOptions: {
// Do not add X-Forwarded-For, etc. headers, because Heroku already adds it.
xfwd: false,
},
httpsOptions: {
pfx: fs.readFileSync('test_cert.pfx'),
passphrase: 'sample',
rejectUnauthorized:false

}
}
}).listen(port, host, function() {
console.log('Running CORS Anywhere on ' + host + ':' + port);
});

0 comments on commit b95554a

Please sign in to comment.