summaryrefslogtreecommitdiffstats
path: root/custom
diff options
context:
space:
mode:
authortechknowlogick <techknowlogick@gitea.io>2023-05-25 04:13:47 -0400
committerGitHub <noreply@github.com>2023-05-25 16:13:47 +0800
commit033d92997fc16baee097d2b25f08e0984e628abd (patch)
tree731c2ed48759bbb86baeb837c7da8a06078a03a3 /custom
parentcff4e37d43595d0ad22b634c274d62b04ab9a468 (diff)
downloadgitea-033d92997fc16baee097d2b25f08e0984e628abd.tar.gz
gitea-033d92997fc16baee097d2b25f08e0984e628abd.zip
Allow skipping forks and mirrors from being indexed (#23187)
This PR adds two new options to disable repo/code search indexing of both forks and mirrors. Related: #22842
Diffstat (limited to 'custom')
-rw-r--r--custom/conf/app.example.ini4
1 files changed, 4 insertions, 0 deletions
diff --git a/custom/conf/app.example.ini b/custom/conf/app.example.ini
index 344f92be49..c2b721b0cf 100644
--- a/custom/conf/app.example.ini
+++ b/custom/conf/app.example.ini
@@ -1362,6 +1362,10 @@ LEVEL = Info
;; repo indexer by default disabled, since it uses a lot of disk space
;REPO_INDEXER_ENABLED = false
;;
+;; repo indexer units, the items to index, could be `sources`, `forks`, `mirrors`, `templates` or any combination of them separated by a comma.
+;; If empty then it defaults to `sources` only, as if you'd like to disable fully please see REPO_INDEXER_ENABLED.
+;REPO_INDEXER_REPO_TYPES = sources,forks,mirrors,templates
+;;
;; Code search engine type, could be `bleve` or `elasticsearch`.
;REPO_INDEXER_TYPE = bleve
;;