Merge pull request #50 from em0lar/repo_indexer
Add config options for repository indexer
This commit is contained in:
commit
c7dca823c9
3 changed files with 19 additions and 1 deletions
|
@ -138,6 +138,14 @@ As this will only deploy config files, fail2ban already has to be installed or o
|
|||
* `gitea_metrics_enabled`: Enable the metrics endpoint
|
||||
* `gitea_metrics_token`: Bearer token for the Prometheus scrape job
|
||||
|
||||
### Repository Indexer configuration
|
||||
|
||||
* `gitea_repo_indexer_enabled`: Whether to enable the repository indexer (code search). Default: `false`
|
||||
* `gitea_repo_indexer_include`: Glob patterns to include in the index (comma-separated list). Default: `""` (all files)
|
||||
* `gitea_repo_indexer_exclude`: Glob patterns to exclude from the index (comma-separated list). Default: `""` (no files)
|
||||
* `gitea_repo_exclude_vendored`: Exclude vendored files from the index. Default: `true`
|
||||
* `gitea_repo_indexer_max_file_size`: Maximum size of files to be indexed (in bytes). Default: `1048576` (1 MB)
|
||||
|
||||
## Contributing
|
||||
Don't hesitate to create a pull request, and when in doubt you can reach me on
|
||||
Twitter [@thomas_maurice](https://twitter.com/thomas_maurice).
|
||||
|
|
|
@ -71,3 +71,9 @@ gitea_metrics_token: ~
|
|||
|
||||
gitea_themes: gitea,arc-green
|
||||
gitea_theme_default: gitea
|
||||
|
||||
gitea_repo_indexer_enabled: false
|
||||
gitea_repo_indexer_include: ""
|
||||
gitea_repo_indexer_exclude: ""
|
||||
gitea_repo_exclude_vendored: true
|
||||
gitea_repo_indexer_max_file_size: 1048576
|
||||
|
|
|
@ -84,8 +84,12 @@ ISSUE_INDEXER_QUEUE_TYPE = levelqueue
|
|||
ISSUE_INDEXER_QUEUE_DIR = {{ gitea_home }}/indexers/issues.queue
|
||||
|
||||
; repo indexer by default disabled, since it uses a lot of disk space
|
||||
REPO_INDEXER_ENABLED = false
|
||||
REPO_INDEXER_ENABLED = {{ gitea_repo_indexer_enabled }}
|
||||
REPO_INDEXER_PATH = {{ gitea_home }}/indexers/repos.bleve
|
||||
REPO_INDEXER_INCLUDE = {{ gitea_repo_indexer_include }}
|
||||
REPO_INDEXER_EXCLUDE = {{ gitea_repo_indexer_exclude }}
|
||||
REPO_INDEXER_EXCLUDE_VENDORED = {{ gitea_repo_exclude_vendored }}
|
||||
MAX_FILE_SIZE = {{ gitea_repo_indexer_max_file_size }}
|
||||
|
||||
[security]
|
||||
; Whether the installer is disabled
|
||||
|
|
Loading…
Reference in a new issue