mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-24 17:11:30 +00:00
Update to raise the body-parser limit to fix "Error: request entity too large" issue
This commit is contained in:
parent
045c08447f
commit
b5d3570b1a
1 changed files with 5 additions and 2 deletions
7
app.js
7
app.js
|
@ -67,11 +67,14 @@ realtime.io = io;
|
||||||
app.use(methodOverride('_method'));
|
app.use(methodOverride('_method'));
|
||||||
|
|
||||||
// create application/json parser
|
// create application/json parser
|
||||||
var jsonParser = bodyParser.json();
|
var jsonParser = bodyParser.json({
|
||||||
|
limit: 1024 * 1024 * 10 // 10 mb
|
||||||
|
});
|
||||||
|
|
||||||
// create application/x-www-form-urlencoded parser
|
// create application/x-www-form-urlencoded parser
|
||||||
var urlencodedParser = bodyParser.urlencoded({
|
var urlencodedParser = bodyParser.urlencoded({
|
||||||
extended: false
|
extended: false,
|
||||||
|
limit: 1024 * 1024 * 10 // 10 mb
|
||||||
});
|
});
|
||||||
|
|
||||||
//session store
|
//session store
|
||||||
|
|
Loading…
Reference in a new issue