Ver código fonte

Make the number of max entities per project configurable

Christopher Schenk 3 anos atrás
pai
commit
0c265db259
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      services/web/config/settings.defaults.js

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

@@ -275,7 +275,7 @@ module.exports = {
 
   robotsNoindex: process.env.ROBOTS_NOINDEX === 'true' || false,
 
-  maxEntitiesPerProject: 2000,
+  maxEntitiesPerProject: parseInt(process.env.MAX_ENTITIES_PER_PROJECT || '2000', 10),
 
   maxUploadSize: 50 * 1024 * 1024, // 50 MB
   multerOptions: {