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

12
app.js
View file

@ -114,11 +114,17 @@ app.use(session({
app.use(flash());
app.use(bodyParser.urlencoded({
extended: true
extended: true,
limit: config.www.postsize
}));
app.use(bodyParser.text());
app.use(bodyParser.json());
app.use(bodyParser.text({
limit: config.www.postsize
}));
app.use(bodyParser.json({
limit: config.www.postsize
}));
passport.setup(app);