code: function startApp() {
      var port = httpsEnabled && settings.https.port ||
                 httpEnabled && settings.http.port;
  
      var host = httpsEnabled && settings.https.host ||
                 httpEnabled && settings.http.host || '0.0.0.0';
  
  
  
      if (httpsEnabled && httpEnabled) {
          // Create an HTTP -> HTTPS redirect server
          var redirectServer = express();
          redirectServer.get('*', function(req, res) {
              var urlPort = port === 80 ? '' : ':' + port;
              res.redirect('https://' + req.hostname + urlPort + req.path);
          });
          http.createServer(redirectServer)
              .listen(settings.http.port || 5000, host);
      }
  
      app.listen(port, host);
  
      //
      // XMPP
      //
      if (settings.xmpp.enable) {
          var xmpp = require('./app/xmpp/index');
          xmpp(core);
      }
  
      var art = fs.readFileSync('./app/misc/art.txt', 'utf8');
      console.log('\n' + art + '\n\n' + 'Release ' + psjon.version.yellow + '\n');
  }
docs: Go Time