From 7bc95545ec575cacf7dc51db6af964f28facdca3 Mon Sep 17 00:00:00 2001 From: DmitryFrolovTri <23313323+DmitryFrolovTri@users.noreply.github.com> Date: Tue, 23 May 2023 15:04:44 +0000 Subject: [PATCH] The size unit of measurements should be mentioned in the config and documentation file --- custom/conf/app.example.ini | 3 ++- docs/content/doc/administration/config-cheat-sheet.en-us.md | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/custom/conf/app.example.ini b/custom/conf/app.example.ini index b3d2117b4b4..fb6cee734d4 100644 --- a/custom/conf/app.example.ini +++ b/custom/conf/app.example.ini @@ -943,8 +943,9 @@ LEVEL = Info ;; "false" means no limit will be enforced, even if specified on a repository ;ENABLE_SIZE_LIMIT = false ; -;; Specify a global repository size limit to apply for each repository. 0 - No limit +;; Specify a global repository size limit in bytes to apply for each repository. 0 - No limit ;; If repository has it's own limit set in UI it will override the global setting +;; Standard units of measurements for size can be used like B, KB, KiB, ... , EB, EiB, ... ;REPO_SIZE_LIMIT = 0 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; diff --git a/docs/content/doc/administration/config-cheat-sheet.en-us.md b/docs/content/doc/administration/config-cheat-sheet.en-us.md index f7b678ec464..a74195d98a0 100644 --- a/docs/content/doc/administration/config-cheat-sheet.en-us.md +++ b/docs/content/doc/administration/config-cheat-sheet.en-us.md @@ -116,7 +116,7 @@ In addition there is _`StaticRootPath`_ which can be set as a built-in at build - `ALLOW_FORK_WITHOUT_MAXIMUM_LIMIT`: **true**: Allow fork repositories without maximum number limit - `ENABLE_SIZE_LIMIT`: **false**: Enable global per repository size limit defined in `REPO_SIZE_LIMIT` or at the repository itself. -- `REPO_SIZE_LIMIT`: **0**: The global default size limit to apply per repository in bytes when `ENABLE_SIZE_LIMIT` is `true`. Value `0` - no limit. The repository limit set via user interface by admin takes precedence over this value. +- `REPO_SIZE_LIMIT`: **0**: The global default size limit to apply per repository in bytes when `ENABLE_SIZE_LIMIT` is `true`. Value `0` - no limit. The repository limit set via user interface by admin takes precedence over this value. Standard units of measurements can be used with this number like - `B`, `KB`, `KiB`, `MB`, `MiB`, .... , `EB`, `EiB`, ... ### Repository - Editor (`repository.editor`)