Permalink
Browse files

[fix] removed https for the moment

  • Loading branch information...
1 parent 0f65038 commit 882d828e5adec6017ec549a49aefcc5bc4984651 @alejandro alejandro committed Jul 20, 2012
Showing with 15 additions and 15 deletions.
  1. +15 −15 proxy/proxy.js
View
@@ -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');
@@ -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.