Skip to content

Commit

Permalink
[fix] removed https for the moment
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandro committed Jul 20, 2012
1 parent 0f65038 commit 882d828
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions proxy/proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ var Logger = require('bunyan')
, path = require('path')
, config = require('../config')
, bouncy = require('bouncy')
, https = true
, https = false
;

try {
var ssl = {
key: fs.readFileSync(config.opt.ssl_key_file, 'utf8'),
cert: fs.readFileSync(config.opt.ssl_cert_file, 'utf8')
};
} catch (excp) {
https = false;
}
// try {
// var ssl = {
// key: fs.readFileSync(config.opt.ssl_key_file, 'utf8'),
// cert: fs.readFileSync(config.opt.ssl_cert_file, 'utf8')
// };
// } catch (excp) {
// https = false;
// }

log.info('Starting proxy initialization');

Expand Down Expand Up @@ -119,11 +119,11 @@ bouncy(proxy).on('error', function(){
log.fatal('Bouncy goes nuts');
}).listen(80);

if (https) {
log.info('Setting up https server');
bouncy(ssl, proxy).on('error', function(){
log.fatal('Bouncy goes nuts');
}).listen(433);
}
// if (https) {
// log.info('Setting up https server');
// bouncy(ssl, proxy).on('error', function(){
// log.fatal('Bouncy goes nuts');
// }).listen(433);
// }

log.info('Proxy initialization completed');

0 comments on commit 882d828

Please sign in to comment.