Merge pull request #249 from Hornwitser/fix-json-limit

Fix JSON payload limit being too low (1.2.x)
This commit is contained in:
Hornwitser authored and GitHub committed 2019-10-26 18:09:53 +02:00
commit 3647ac7fc8
5 files changed
+16 -4

No files matched your search

+10
View File
@@ -1,6 +1,16 @@
Changelog
=========
Version 1.2.3
-------------
- Disabled uploading mods to the master server by default as this is mostly
just a waste of bandwidth with the mod portal being integrated into the
game now.
- Fixed researchSync breaking with heavily modded games due to the tech tree
exceeding the default 100kb limit on JSON payloads.
Version 1.2.2
-------------
+1 -1
View File
@@ -11,7 +11,7 @@ Discord for development/support/play: https://discord.gg/5XuDkje
## Important notice
This is the stable branch of the project. The
[master branch][http://github.com/clusterio/factorioClusterio/tree/master]
[master branch](http://github.com/clusterio/factorioClusterio/tree/master)
is undergoing significant changes that breaks compatibility to plugins and
existing installations and is not recommended for use.
+1 -1
View File
@@ -50,7 +50,7 @@
"__comment6.5": "When the master is undersupplied, we have 3 different modes to 'fairly' distribute items. First to ask gets all, dole division using weird formula or experimental neural net tries to make stuff as fair as possible. Feel free to play around.",
"disableFairItemDistribution": false,
"useNeuralNetDoleDivider": true,
"uploadModsToMaster": true,
"uploadModsToMaster": false,
"msBetweenCommands": 10,
"allowRemoteCommandExecution": true,
"enableCrossServerShout": true,
+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',
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "clusterio",
"version": "1.2.2",
"version": "1.2.3-alpha",
"description": "Interserver communication for factorio",
"repository": "https://github.com/Danielv123/factorioClusterio",
"main": "master.js",