mirror of https://github.com/status-im/codimd.git
Update to raise the body-parser limit to fix "Error: request entity too large" issue
This commit is contained in:
parent
045c08447f
commit
b5d3570b1a
7
app.js
7
app.js
|
@ -67,11 +67,14 @@ realtime.io = io;
|
|||
app.use(methodOverride('_method'));
|
||||
|
||||
// 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
|
||||
var urlencodedParser = bodyParser.urlencoded({
|
||||
extended: false
|
||||
extended: false,
|
||||
limit: 1024 * 1024 * 10 // 10 mb
|
||||
});
|
||||
|
||||
//session store
|
||||
|
|
Loading…
Reference in New Issue