mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-01 18:43:43 -05:00
Merge pull request #53 from overleaf/em-max-doc-length
Make max doc length configurable via an env variable
This commit is contained in:
commit
a8cb1adeeb
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
if (process.env.MONGO_CONNECTION_STRING != null) {
|
||||||
|
|
Loading…
Reference in a new issue