Просмотр исходного кода

add an enviroment variable `GRIDFS_LIMIT`

yusueketk 7 лет назад
Родитель
Сommit
bc407dabd2
2 измененных файлов с 2 добавлено и 0 удалено
  1. 1 0
      README.md
  2. 1 0
      config/env.dev.js

+ 1 - 0
README.md

@@ -168,6 +168,7 @@ Environment Variables
       * `mongodb` : MongoDB GridFS (Setting-less)
       * `local` : Server's Local file system (Setting-less)
       * `none` : Disable file uploading
+    * GRIDFS_LIMIT: Limit amount of uploaded file with GridFS: `20000000`
 * **Option to integrate with external systems**
     * HACKMD_URI: URI to connect to [HackMD(CodiMD)](https://hackmd.io/) server.
         * **This server must load the GROWI agent. [Here's how to prepare it](https://docs.growi.org/management-cookbook/integrate-with-hackmd).**

+ 1 - 0
config/env.dev.js

@@ -1,6 +1,7 @@
 module.exports = {
   NODE_ENV: 'development',
   FILE_UPLOAD: 'mongodb',
+  GRIDFS_LIMIT: 20000000,
   // MATHJAX: 1,
   ELASTICSEARCH_URI: 'http://localhost:9200/growi',
   HACKMD_URI: 'http://localhost:3010',