Up the json size to 2mb for block list route

https://forum.cloudron.io/topic/6575/cloudron-7-1-2-firewall-not-ipv6-ready
This commit is contained in:
Girish Ramakrishnan
2022-03-01 11:28:34 -08:00
parent b92641d1b8
commit eb0662b245
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ function initializeExpressSync() {
const wsServer = new ws.Server({ noServer: true }); // in noServer mode, we have to handle 'upgrade' and call handleUpgrade
const QUERY_LIMIT = '1mb', // max size for json and urlencoded queries (see also client_max_body_size in nginx)
const QUERY_LIMIT = '2mb', // max size for json and urlencoded queries (see also client_max_body_size in nginx)
FIELD_LIMIT = 2 * 1024 * 1024; // max fields that can appear in multipart
const REQUEST_TIMEOUT = 20000; // timeout for all requests (see also setTimeout on the httpServer)