Skip to content

Commit

Permalink
connect to 443 on production
Browse files Browse the repository at this point in the history
  • Loading branch information
krsch committed Jun 25, 2013
1 parent 9b593a2 commit 8186251
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app.js
Expand Up @@ -6,6 +6,7 @@
"use strict";
var http = require('http')
, redirect = require('connect-redirection')
// , config = require('config')
, ss = require('socketstream');

// Connect to MongoDB
Expand Down Expand Up @@ -78,6 +79,9 @@ ss.http.route('/login.html', function(req,res){
var connect = ss.http.connect,
MongoStore = require('connect-mongo')(connect);
ss.session.store.use(new MongoStore({db: 'pp'}));
if (process.env.NODE_ENV == 'production') {
ss.ws.transport.use('engineio', { client: { port: 443 } });
}
ss.http.middleware.prepend(redirect());
ss.http.middleware.append(require('./server/express/register.js'));
// ss.http.middleware.append(require('./server/express/login.js'));
Expand Down

0 comments on commit 8186251

Please sign in to comment.