Merge pull request #53 from overleaf/em-max-doc-length

Make max doc length configurable via an env variable
This commit is contained in:
Eric Mc Sween 2020-03-09 10:19:48 -04:00 committed by GitHub
commit a8cb1adeeb

View file

@ -22,7 +22,7 @@ const Settings = {
}
},
max_doc_length: 2 * 1024 * 1024 // 2mb
max_doc_length: parseInt(process.env.MAX_DOC_LENGTH) || 2 * 1024 * 1024 // 2mb
}
if (process.env.MONGO_CONNECTION_STRING != null) {