Explorar o código

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

Make max doc length configurable via an env variable
Eric Mc Sween %!s(int64=6) %!d(string=hai) anos
pai
achega
a8cb1adeeb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      services/docstore/config/settings.defaults.js

+ 1 - 1
services/docstore/config/settings.defaults.js

@@ -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) {