From d432fb57acade8576d5f608d1fa8962b701ca12c Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Sun, 30 Mar 2025 05:37:25 +0000 Subject: [PATCH] Update config option: REQUIRE_SIGNIN_VIEW (#191) Reviewed-on: https://gitea.com/gitea/docs/pulls/191 --- docs/administration/config-cheat-sheet.md | 3 +++ .../version-1.23/administration/config-cheat-sheet.md | 3 +++ 2 files changed, 6 insertions(+) diff --git a/docs/administration/config-cheat-sheet.md b/docs/administration/config-cheat-sheet.md index d2377091..cc391192 100644 --- a/docs/administration/config-cheat-sheet.md +++ b/docs/administration/config-cheat-sheet.md @@ -671,6 +671,9 @@ And the following unique queues: ::: - `REQUIRE_SIGNIN_VIEW`: **false**: Enable this to force users to log in to view any page or to use API. + It could be set to "expensive" to block anonymous users accessing some pages which consume a lot of resources, + for example: block anonymous AI crawlers from accessing repo code pages. + The "expensive" mode is experimental and subject to change. - `ENABLE_NOTIFY_MAIL`: **false**: Enable this to send e-mail to watchers of a repository when something happens, like creating issues. Requires `Mailer` to be enabled. - `ENABLE_BASIC_AUTHENTICATION`: **true**: Disable this to disallow authentication using HTTP diff --git a/versioned_docs/version-1.23/administration/config-cheat-sheet.md b/versioned_docs/version-1.23/administration/config-cheat-sheet.md index 90001aa1..21f9cd27 100644 --- a/versioned_docs/version-1.23/administration/config-cheat-sheet.md +++ b/versioned_docs/version-1.23/administration/config-cheat-sheet.md @@ -658,6 +658,9 @@ And the following unique queues: ::: - `REQUIRE_SIGNIN_VIEW`: **false**: Enable this to force users to log in to view any page or to use API. + After 1.23.7, it could be set to "expensive" to block anonymous users accessing some pages which consume a lot of resources, + for example: block anonymous AI crawlers from accessing repo code pages. + The "expensive" mode is experimental and subject to change. - `ENABLE_NOTIFY_MAIL`: **false**: Enable this to send e-mail to watchers of a repository when something happens, like creating issues. Requires `Mailer` to be enabled. - `ENABLE_BASIC_AUTHENTICATION`: **true**: Disable this to disallow authentication using HTTP