about summary refs log tree commit diff stats
path: root/internal/config/config.go
diff options
context:
space:
mode:
authorAlan Pearce2024-05-13 23:04:50 +0200
committerAlan Pearce2024-05-13 23:04:50 +0200
commit6fed92fd9acc567e6a1ebd939402b9198da40b86 (patch)
tree4d2d2697b9485563727824a4a4064b9fe8458421 /internal/config/config.go
parent45432ae8006322e89f89f43423ff26c99d98de10 (diff)
downloadsearchix-6fed92fd9acc567e6a1ebd939402b9198da40b86.tar.lz
searchix-6fed92fd9acc567e6a1ebd939402b9198da40b86.tar.zst
searchix-6fed92fd9acc567e6a1ebd939402b9198da40b86.zip
style: make port a string for easier nix integration
Diffstat (limited to 'internal/config/config.go')
-rw-r--r--internal/config/config.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/config/config.go b/internal/config/config.go
index 5ba96d3..75f18d6 100644
--- a/internal/config/config.go
+++ b/internal/config/config.go
@@ -61,7 +61,7 @@ func mustLocalTime(in string) (time toml.LocalTime) {
 type Web struct {
 	ContentSecurityPolicy CSP
 	ListenAddress         string
-	Port                  string
+	Port                  int
 	BaseURL               URL
 	SentryDSN             string
 	Environment           string
@@ -86,7 +86,7 @@ var defaultConfig = Config{
 	DataPath: "./data",
 	Web: &Web{
 		ListenAddress: "localhost",
-		Port:          "3000",
+		Port:          3000,
 		BaseURL:       mustURL("http://localhost:3000"),
 		ContentSecurityPolicy: CSP{
 			DefaultSrc: []string{"'self'"},