Open
Description
Feature Description
Due to the size of code index not all repos should be indexed, an admin may wish to only allow certain repos (or namespaces to be indexed).
Perhaps a global setting such as CODESEARCH_ALLOWLIST: org/*, user/project,...
and if a repo is not in that list then it wouldn't be indexed. This could later be extended to add options to disregard archived/forked repos, etc..
Screenshots
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
brechtvl commentedon Feb 9, 2023
For our use case at Blender I think we would want to disable it on all forks, and that would be enough. A specific list of repos is not something we would use probably, since keeping that up to date is not so convenient.
lunny commentedon Feb 10, 2023
I think just disabling fork repositories is an easier implementation than allowlist, but there are still mirrors and even users in fact could do a localhost fork and push but not from Gitea itself.
Allow skipping forks and mirrors from being indexed (#23187)