added max post size option
This commit is contained in:
parent
bab1a134a2
commit
a47e87d7bc
4 changed files with 17 additions and 10 deletions
|
@ -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 => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue