Increase limit of Json payloads to master server

The default limit of 100kb to JSON payloads of bodyParser can be
exceeded when running modded games with researchSync.  Increase the
limit to 10mb as a bandaid to fix this issue.
This commit is contained in:
Hornwitser committed 2019-10-26 17:45:02 +02:00
1 parent 3c5b108e4b
commit 25eb5e5d76
2 files changed
+5 -1

No files matched your search

+3 -1
View File
@@ -83,7 +83,9 @@ const fileUpload = require('express-fileupload');
var app = express();
app.use(cookieParser());
app.use(bodyParser.json());
app.use(bodyParser.json({
limit: '10mb',
}));
app.use(bodyParser.urlencoded({
parameterLimit: 100000,
limit: '10mb',