From 5df4373bfe3d38e368d4475af8aaf2de22c8eccd Mon Sep 17 00:00:00 2001 From: silverwind Date: Wed, 18 Nov 2026 01:48:22 +0000 Subject: [PATCH] Document DEFAULT_TEAM_VISIBILITY (#652) Documents https://github.com/go-gitea/gitea/pull/40151 for main, which adds `[service] DEFAULT_TEAM_VISIBILITY` to set the visibility of new teams in the web form and in the create-team API when none is given. WIP until that PR merges. _Written by Claude (Opus 5.5)._ --------- Co-authored-by: Lunny Xiao Reviewed-on: https://gitea.com/gitea/docs/pulls/652 Reviewed-by: Lunny Xiao Co-authored-by: silverwind --- docs/administration/config-cheat-sheet.md | 1 + i18n/zh-cn/docs/current/administration/config-cheat-sheet.md | 1 + i18n/zh-tw/docs/current/administration/config-cheat-sheet.md | 1 + 3 files changed, 3 insertions(+) diff --git a/docs/administration/config-cheat-sheet.md b/docs/administration/config-cheat-sheet.md index 33881cfa..be8f3f2f 100644 --- a/docs/administration/config-cheat-sheet.md +++ b/docs/administration/config-cheat-sheet.md @@ -774,6 +774,7 @@ And the following unique queues: - `ALLOWED_USER_VISIBILITY_MODES`: **public,limited,private**: Set which visibility modes a user can have - `DEFAULT_ORG_VISIBILITY`: **public**: Set default visibility mode for organisations, either "public", "limited" or "private". - `DEFAULT_ORG_MEMBER_VISIBLE`: **false** True will make the membership of the users visible when added to the organisation. +- `DEFAULT_TEAM_VISIBILITY`: **private**: Sets the default visibility for newly created teams within an organization, either "public", "limited" or "private". - `ALLOW_ONLY_INTERNAL_REGISTRATION`: **false** Set to true to force registration only via Gitea. - `ALLOW_ONLY_EXTERNAL_REGISTRATION`: **false** Set to true to force registration only using third-party services. - `NO_REPLY_ADDRESS`: **_empty_**: Value for the domain part of the user's email address in the git log if user has set KeepEmailPrivate to true. The user's email will be replaced with a concatenation of the user name in lower case, "@" and NO_REPLY_ADDRESS. Default value is "noreply." + the domain part of ROOT_URL diff --git a/i18n/zh-cn/docs/current/administration/config-cheat-sheet.md b/i18n/zh-cn/docs/current/administration/config-cheat-sheet.md index d694d00e..ee473d28 100644 --- a/i18n/zh-cn/docs/current/administration/config-cheat-sheet.md +++ b/i18n/zh-cn/docs/current/administration/config-cheat-sheet.md @@ -641,6 +641,7 @@ Gitea 创建以下非唯一队列: - `ALLOWED_USER_VISIBILITY_MODES`: **public,limited,private**: 设置用户可以具有的可见性模式 - `DEFAULT_ORG_VISIBILITY`: **public**: 为组织设置默认的可见性模式,可以是"public"、"limited"或"private"。 - `DEFAULT_ORG_MEMBER_VISIBLE`: **false**: 如果添加到组织时将用户的成员身份可见,设置为 True。 +- `DEFAULT_TEAM_VISIBILITY`: **private**: 为组织中新创建的团队设置默认的可见性,可以是"public"、"limited"或"private"。 - `ALLOW_ONLY_INTERNAL_REGISTRATION`: **false**: 设置为 True 以强制仅通过 Gitea 进行注册。 - `ALLOW_ONLY_EXTERNAL_REGISTRATION`: **false**: 设置为 True 以强制仅使用第三方服务进行注册。 - `NO_REPLY_ADDRESS`: **noreply.DOMAIN**: 如果用户将 KeepEmailPrivate 设置为 True,则在 Git 日志中的用户电子邮件地址的域部分的值。DOMAIN 解析为 server.DOMAIN 中的值。 diff --git a/i18n/zh-tw/docs/current/administration/config-cheat-sheet.md b/i18n/zh-tw/docs/current/administration/config-cheat-sheet.md index a499e390..f73f7d29 100644 --- a/i18n/zh-tw/docs/current/administration/config-cheat-sheet.md +++ b/i18n/zh-tw/docs/current/administration/config-cheat-sheet.md @@ -646,6 +646,7 @@ Gitea 建立以下非唯一隊列: - `ALLOWED_USER_VISIBILITY_MODES`: **public,limited,private**: 設定使用者可以具有的可見性模式 - `DEFAULT_ORG_VISIBILITY`: **public**: 為組織設定預設的可見性模式,可以是"public"、"limited"或"private"。 - `DEFAULT_ORG_MEMBER_VISIBLE`: **false**: 如果添加到組織時將使用者的成員身份可見,設定為 True。 +- `DEFAULT_TEAM_VISIBILITY`: **private**: 為組織中新建立的團隊設定預設的可見性,可以是"public"、"limited"或"private"。 - `ALLOW_ONLY_INTERNAL_REGISTRATION`: **false**: 設定為 True 以強制僅通過 Gitea 進行註冊。 - `ALLOW_ONLY_EXTERNAL_REGISTRATION`: **false**: 設定為 True 以強制僅使用第三方服務進行註冊。 - `NO_REPLY_ADDRESS`: **noreply.DOMAIN**: 如果使用者將 KeepEmailPrivate 設定為 True,則在 Git 日誌中的使用者電子電子郵件地址的域部分的值。DOMAIN 解析為 server.DOMAIN 中的值。