diff --git a/docs/administration/config-cheat-sheet.md b/docs/administration/config-cheat-sheet.md index c268e7a8..d36780f5 100644 --- a/docs/administration/config-cheat-sheet.md +++ b/docs/administration/config-cheat-sheet.md @@ -111,8 +111,13 @@ In addition, there is _`StaticRootPath`_ which can be set as a built-in at build - `FORCE_PRIVATE`: **false**: Force every new repository to be private. - `DEFAULT_PRIVATE`: **last**: Default private when creating a new repository: `last`, `private`, `public` - `DEFAULT_PUSH_CREATE_PRIVATE`: **true**: Default private when creating a new repository with push-to-create. -- `MAX_CREATION_LIMIT`: **-1**: Global maximum creation limit of repositories per user, - `-1` means no limit. +- `MAX_CREATION_LIMIT`: **-1**: Global maximum creation limit of repositories per user/org, + `-1` means no limit. Acts as a shortcut: sets the default value for both + `USER_MAX_CREATION_LIMIT` and `ORG_MAX_CREATION_LIMIT` when those are not configured. +- `USER_MAX_CREATION_LIMIT`: **-1**: Global maximum creation limit of repositories per user, + applied at creation time. `-1` means no limit. Takes precedence over `MAX_CREATION_LIMIT` when set. +- `ORG_MAX_CREATION_LIMIT`: **-1**: Global maximum creation limit of repositories per organization, + applied at creation time. `-1` means no limit. Takes precedence over `MAX_CREATION_LIMIT` when set. - `PREFERRED_LICENSES`: **Apache License 2.0,MIT License**: Preferred Licenses to place at the top of the list. Name must match file name in options/license or custom/options/license. - `DISABLE_HTTP_GIT`: **false**: Disable the ability to interact with repositories over the diff --git a/i18n/zh-cn/docusaurus-plugin-content-docs/current/administration/config-cheat-sheet.md b/i18n/zh-cn/docusaurus-plugin-content-docs/current/administration/config-cheat-sheet.md index 77dd8eb2..5f559964 100644 --- a/i18n/zh-cn/docusaurus-plugin-content-docs/current/administration/config-cheat-sheet.md +++ b/i18n/zh-cn/docusaurus-plugin-content-docs/current/administration/config-cheat-sheet.md @@ -84,8 +84,13 @@ aliases: - `FORCE_PRIVATE`: **false**: 强制使每个新仓库变为私有。 - `DEFAULT_PRIVATE`: **last**: 创建新仓库时默认为私有:`last`, `private`, `public`。 - `DEFAULT_PUSH_CREATE_PRIVATE`: **true**: 使用推送创建新仓库时默认为私有。 -- `MAX_CREATION_LIMIT`: **-1**: 每个用户的全局仓库创建上限, - `-1` 代表无限制. +- `MAX_CREATION_LIMIT`: **-1**: 每个用户/组织的全局仓库创建上限, + `-1` 代表无限制. 当 `USER_MAX_CREATION_LIMIT` 与 `ORG_MAX_CREATION_LIMIT` + 未单独配置时, 这两项的默认值都会继承自此项. +- `USER_MAX_CREATION_LIMIT`: **-1**: 每个用户的全局仓库创建上限, 在创建仓库时生效. + `-1` 代表无限制. 设置后优先级高于 `MAX_CREATION_LIMIT`. +- `ORG_MAX_CREATION_LIMIT`: **-1**: 每个组织的全局仓库创建上限, 在创建仓库时生效. + `-1` 代表无限制. 设置后优先级高于 `MAX_CREATION_LIMIT`. - `PREFERRED_LICENSES`: **Apache License 2.0,MIT License**: 要放置在列表顶部的指定许可证。 名称必须与 options/license 或 custom/options/license 中的文件名匹配。 - `DISABLE_HTTP_GIT`: **false**: 禁用 HTTP 协议与仓库进行 diff --git a/i18n/zh-tw/docusaurus-plugin-content-docs/current/administration/config-cheat-sheet.md b/i18n/zh-tw/docusaurus-plugin-content-docs/current/administration/config-cheat-sheet.md index f4bce70e..dd4fa549 100644 --- a/i18n/zh-tw/docusaurus-plugin-content-docs/current/administration/config-cheat-sheet.md +++ b/i18n/zh-tw/docusaurus-plugin-content-docs/current/administration/config-cheat-sheet.md @@ -84,8 +84,13 @@ aliases: - `FORCE_PRIVATE`: **false**: 强制使每个新仓库变为私有。 - `DEFAULT_PRIVATE`: **last**: 创建新仓库时默认为私有:`last`, `private`, `public`。 - `DEFAULT_PUSH_CREATE_PRIVATE`: **true**: 使用推送创建新仓库时默认为私有。 -- `MAX_CREATION_LIMIT`: **-1**: 每个用户的全局仓库创建上限, - `-1` 代表无限制. +- `MAX_CREATION_LIMIT`: **-1**: 每個使用者/組織的全域儲存庫建立上限, + `-1` 代表無限制。當 `USER_MAX_CREATION_LIMIT` 與 `ORG_MAX_CREATION_LIMIT` + 未單獨設定時,這兩項的預設值都會繼承自此項。 +- `USER_MAX_CREATION_LIMIT`: **-1**: 每個使用者的全域儲存庫建立上限,在建立儲存庫時生效。 + `-1` 代表無限制。設定後優先級高於 `MAX_CREATION_LIMIT`。 +- `ORG_MAX_CREATION_LIMIT`: **-1**: 每個組織的全域儲存庫建立上限,在建立儲存庫時生效。 + `-1` 代表無限制。設定後優先級高於 `MAX_CREATION_LIMIT`。 - `PREFERRED_LICENSES`: **Apache License 2.0,MIT License**: 要放置在列表顶部的指定许可证。 名称必须与 options/license 或 custom/options/license 中的文件名匹配。 - `DISABLE_HTTP_GIT`: **false**: 禁用 HTTP 协议与仓库进行