feat: customize index max depth

Because some driver's issue may cause infinite loop
This commit is contained in:
Noah Hsu
2023-01-17 17:33:18 +08:00
parent 9c7e451c03
commit 26fe0a7684
7 changed files with 19 additions and 21 deletions

View File

@ -146,6 +146,7 @@ func InitialSettings() []model.SettingItem {
{Key: conf.SearchIndex, Value: "none", Type: conf.TypeSelect, Options: "database,database_non_full_text,bleve,none", Group: model.INDEX},
{Key: conf.AutoUpdateIndex, Value: "false", Type: conf.TypeBool, Group: model.INDEX},
{Key: conf.IgnorePaths, Value: "", Type: conf.TypeText, Group: model.INDEX, Flag: model.PRIVATE, Help: `one path per line`},
{Key: conf.MaxIndexDepth, Value: "20", Type: conf.TypeNumber, Group: model.INDEX, Flag: model.PRIVATE, Help: `max depth of index`},
{Key: conf.IndexProgress, Value: "{}", Type: conf.TypeText, Group: model.SINGLE, Flag: model.PRIVATE},
// GitHub settings