|
|
@ -1,11 +1,11 @@
|
|
|
|
"use strict";
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
|
|
|
var utils = require('./../../public/src/utils'),
|
|
|
|
var utils = require('../../public/src/utils'),
|
|
|
|
meta = require('./../meta'),
|
|
|
|
meta = require('../meta'),
|
|
|
|
plugins = require('./../plugins'),
|
|
|
|
plugins = require('../plugins'),
|
|
|
|
db = require('./../database'),
|
|
|
|
db = require('../database'),
|
|
|
|
auth = require('./../routes/authentication'),
|
|
|
|
auth = require('../routes/authentication'),
|
|
|
|
emitter = require('./../emitter'),
|
|
|
|
emitter = require('../emitter'),
|
|
|
|
|
|
|
|
|
|
|
|
async = require('async'),
|
|
|
|
async = require('async'),
|
|
|
|
path = require('path'),
|
|
|
|
path = require('path'),
|
|
|
@ -19,7 +19,6 @@ var utils = require('./../../public/src/utils'),
|
|
|
|
cookieParser = require('cookie-parser'),
|
|
|
|
cookieParser = require('cookie-parser'),
|
|
|
|
compression = require('compression'),
|
|
|
|
compression = require('compression'),
|
|
|
|
favicon = require('serve-favicon'),
|
|
|
|
favicon = require('serve-favicon'),
|
|
|
|
multipart = require('connect-multiparty'),
|
|
|
|
|
|
|
|
session = require('express-session'),
|
|
|
|
session = require('express-session'),
|
|
|
|
cluster = require('cluster'),
|
|
|
|
cluster = require('cluster'),
|
|
|
|
|
|
|
|
|
|
|
@ -93,8 +92,6 @@ module.exports = function(app, data) {
|
|
|
|
saveUninitialized: true
|
|
|
|
saveUninitialized: true
|
|
|
|
}));
|
|
|
|
}));
|
|
|
|
|
|
|
|
|
|
|
|
app.use(multipart());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app.use(function (req, res, next) {
|
|
|
|
app.use(function (req, res, next) {
|
|
|
|
res.setHeader('X-Powered-By', 'NodeBB');
|
|
|
|
res.setHeader('X-Powered-By', 'NodeBB');
|
|
|
|
|
|
|
|
|
|
|
|