Search Index Build

This commit is contained in:
Simon Martens
2025-02-17 21:42:20 +01:00
parent d109f7a040
commit fd2fa157b2
18 changed files with 611 additions and 16 deletions

View File

@@ -41,6 +41,7 @@ type Config struct {
GITPath string `json:"git_path" envconfig:"GIT_PATH"`
GNDPath string `json:"gnd_path" envconfig:"GND_PATH"`
GeoPath string `json:"geo_path" envconfig:"GEO_PATH"`
SearchPath string `json:"search_path" envconfig:"SEARCH_PATH"`
ImgPath string `json:"img_path" envconfig:"IMG_PATH"`
WebHookEndpoint string `json:"webhook_endpoint" envconfig:"WEBHOOK_ENDPOINT"`
WebHookSecret string `json:"webhook_secret" envconfig:"WEBHOOK_SECRET"`
@@ -123,6 +124,10 @@ func readDefaults(cfg *Config) *Config {
cfg.ImgPath = DEFAULT_IMG_DIR
}
if strings.TrimSpace(cfg.SearchPath) == "" {
cfg.SearchPath = DEFAULT_SEARCH_CACHE_DIR
}
return cfg
}