Skip to content

Commit

Permalink
Set max upload size of files to 1Go
Browse files Browse the repository at this point in the history
  • Loading branch information
Rico237 committed Nov 16, 2019
1 parent 012ded4 commit 5f9c1c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 5f9c1c9

Please sign in to comment.