mirror of
https://github.com/Theodor-Springmann-Stiftung/kgpz_web.git
synced 2025-10-29 09:05:30 +00:00
Search Index Build
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user