var http = require('http'); var fs = require('fs');
var passport = require('passport'); var TwitterStrategy = require('passport-twitter').Strategy; var GoogleStrategy = require('passport-google-oauth').OAuth2Strategy; var YJStrategy = require('passport-yj').YJStrategy;
var express = require('express'); var ipfilter = require('express-ipfilter'); var session = require('express-session'); var bodyParser = require('body-parser'); var MongoStore = require('connect-mongo/es5')(session); var cookieParser = require('cookie-parser'); var partials = require('express-partials'); var mustacheExpress = require('mustache-express'); var csurf = require('csurf'); var st = require('st'); var socketio = require('socket.io'); var redis = require("redis"); var redisClient