From 5f9c1c9012dfdf84f7b3968c8449cce83e532aa0 Mon Sep 17 00:00:00 2001 From: Rico237 Date: Sat, 16 Nov 2019 22:55:33 +0100 Subject: [PATCH] Set max upload size of files to 1Go --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index d15c4d2..366198b 100644 --- a/index.js +++ b/index.js @@ -62,13 +62,14 @@ console.log(process.env.MASTER_KEY) let api = new ParseServer({ databaseURI: databaseUri, - cloud: process.env.CLOUD_CODE_MAIN || __dirname + '/cloud/main.js', + cloud: process.env.CLOUD_CODE_MAIN || __dirname + '/cloud/main.js', appId: process.env.APP_ID, masterKey: process.env.MASTER_KEY, filesAdapter: gcsAdapter, serverURL: process.env.SERVER_URL, publicServerURL: process.env.PUBLIC_URL, appName: process.env.APP_NAME, + maxUploadSize: process.env.MAX_UPLOAD_SIZE || "1024mb", // 1024 MB = 1 Go allowClientClassCreation: true, // Enable email verification // try to use this (avantage langue) // "@ngti/parse-server-mailgun": "^2.4.18",