瀏覽代碼

add comment

Yuki Takei 6 年之前
父節點
當前提交
e44a6001f9
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/server/service/config-loader.js

+ 3 - 1
src/server/service/config-loader.js

@@ -140,7 +140,9 @@ const ENV_VAR_NAME_TO_CONFIG_INFO = {
     ns:      'crowi',
     ns:      'crowi',
     key:     'gridfs:totalLimit',
     key:     'gridfs:totalLimit',
     type:    TYPES.NUMBER,
     type:    TYPES.NUMBER,
-    default: null,
+    default: null, // set null in default for backward compatibility
+    //                cz: Newer system respects FILE_UPLOAD_TOTAL_LIMIT.
+    //                    If the default value of MONGO_GRIDFS_TOTAL_LIMIT is Infinity, the system can't distinguish between "not specified" and "Infinity is specified".
   },
   },
   FORCE_WIKI_MODE: {
   FORCE_WIKI_MODE: {
     ns:      'crowi',
     ns:      'crowi',