diff options
Diffstat (limited to 'internal/server/server.go')
-rw-r--r-- | internal/server/server.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/server/server.go b/internal/server/server.go index 1611a7a..8252b8e 100644 --- a/internal/server/server.go +++ b/internal/server/server.go @@ -45,6 +45,7 @@ type Config struct { BaseURL cfg.URL `conf:"default:http://localhost:3000,short:b"` ConfigFile string `conf:"short:c"` LogLevel slog.Level `conf:"default:INFO"` + IndexPath string `conf:"default:data/index.bleve"` } type HTTPError struct { @@ -89,7 +90,7 @@ func New(runtimeConfig *Config) (*Server, error) { } slog.Debug("loading index") - index, err := search.Open(config.DataPath) + index, err := search.Open(runtimeConfig.IndexPath) slog.Debug("loaded index") if err != nil { log.Fatalf("could not open search index, error: %#v", err) |