added max post size option

This commit is contained in:
Andris Reinman 2016-04-12 22:36:55 -07:00
parent bab1a134a2
commit a47e87d7bc
4 changed files with 17 additions and 10 deletions

View file

@ -1,5 +1,6 @@
'use strict';
let config = require('config');
let passport = require('passport');
let LocalStrategy = require('passport-local').Strategy;
let csrf = require('csurf');
@ -11,7 +12,8 @@ module.exports.csrfProtection = csrf({
});
module.exports.parseForm = bodyParser.urlencoded({
extended: false
extended: false,
limit: config.www.postsize
});
module.exports.setup = app => {