Yuki Takei 6 лет назад
Родитель
Сommit
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',
     key:     'gridfs:totalLimit',
     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: {
     ns:      'crowi',