about summary refs log tree commit diff stats
path: root/internal/config/config.go
diff options
context:
space:
mode:
authorAlan Pearce2024-05-07 14:21:22 +0200
committerAlan Pearce2024-05-07 14:21:22 +0200
commitf272e269787f0db46d8f90c7ec2cd37e6d4e299a (patch)
treef2847f2a7e96a8ccba05005b6a6a527f5b935f45 /internal/config/config.go
parent9b24b805b45c71bb54dacc1112380357050f48af (diff)
downloadsearchix-f272e269787f0db46d8f90c7ec2cd37e6d4e299a.tar.lz
searchix-f272e269787f0db46d8f90c7ec2cd37e6d4e299a.tar.zst
searchix-f272e269787f0db46d8f90c7ec2cd37e6d4e299a.zip
refactor: make data path (partially) configurable
Diffstat (limited to 'internal/config/config.go')
-rw-r--r--internal/config/config.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/internal/config/config.go b/internal/config/config.go
index e9300ce..c721424 100644
--- a/internal/config/config.go
+++ b/internal/config/config.go
@@ -24,9 +24,10 @@ func (u *URL) UnmarshalText(text []byte) (err error) {
 }
 
 type Config struct {
-	BaseURL URL  `toml:"base_url"`
-	CSP     *CSP `toml:"content-security-policy"`
-	Headers map[string]string
+	BaseURL  URL    `toml:"base_url"`
+	DataPath string `toml:"data_path"`
+	CSP      *CSP   `toml:"content-security-policy"`
+	Headers  map[string]string
 }
 
 func GetConfig() (*Config, error) {