Update Gitea config for 1.19.0

This commit is contained in:
James Skemp 2023-04-08 18:44:57 -05:00
parent 91521d5d2b
commit 0050b995ca
2 changed files with 10 additions and 2 deletions

View File

@ -1,6 +1,7 @@
# Self-hosting with Gitea
- [Gitea](https://gitea.io/en-us/)
- [Gitea Config Cheat Sheet](https://docs.gitea.io/en-us/config-cheat-sheet/)
- [Updating Gitea](./gitea-update.md)
## Vultr Gitea instance with PostgreSQL
@ -201,9 +202,8 @@ PASSWD = `password`
[indexer]
REPO_INDEXER_ENABLED = true
REPO_INDEXER_PATH = indexers/repos.bleve
UPDATE_BUFFER_LEN = 20
MAX_FILE_SIZE = 1048576
REPO_INDEXER_INCLUDE = **.md,**.ts
REPO_INDEXER_INCLUDE = **.cs,**.html,**.md,**.ts,**.txt
REPO_INDEXER_EXCLUDE =
```

View File

@ -191,3 +191,11 @@ Updates came pretty fast, so I ran all three of these one after the other.
12. `sudo systemctl status gitea`
- Should be active (running).
13. After some period of time, delete the backup file.
### 1.19.0 Indexer Updates
> 2023/03/22 21:46:34 ...s/setting/setting.go:614:deprecatedSetting() [E] Deprecated fallback `[indexer]` `UPDATE_BUFFER_LEN` present. Use `[queue.issue_indexer]` `LENGTH` instead. This fallback will be removed in v1.19.0
1. Remove `UPDATE_BUFFER_LEN` from `[indexer]`.
2. If not the default of 20 (https://docs.gitea.io/en-us/config-cheat-sheet/#queue-queue-and-queue), follow the message to set the correct length property.
- In my case I had the default of 20, so I dropped it entirely.