0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-06-12 11:32:32 +02:00

The size unit of measurements should be mentioned in the config and documentation file

This commit is contained in:
DmitryFrolovTri 2023-05-23 15:04:44 +00:00
parent a32f7975c2
commit 7bc95545ec
No known key found for this signature in database
GPG Key ID: 0FBA4D49377CDDC3
2 changed files with 3 additions and 2 deletions

View File

@ -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
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

View File

@ -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`)