about summary refs log tree commit diff stats
path: root/internal/server
diff options
context:
space:
mode:
authorAlan Pearce2024-06-28 14:12:55 +0200
committerAlan Pearce2024-06-28 14:12:55 +0200
commit0fbf10f9d7bc4991084a2405ba7c3816b3a49e9e (patch)
treed4d738a0c500974f003652fed2498049ac478648 /internal/server
parentd8796c6430798e81225f0d48c77ad842e498ad5d (diff)
downloadwebsite-0fbf10f9d7bc4991084a2405ba7c3816b3a49e9e.tar.lz
website-0fbf10f9d7bc4991084a2405ba7c3816b3a49e9e.tar.zst
website-0fbf10f9d7bc4991084a2405ba7c3816b3a49e9e.zip
simplify output directory tree
Diffstat (limited to 'internal/server')
-rw-r--r--internal/server/server.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/server/server.go b/internal/server/server.go
index 469485f..aa979f4 100644
--- a/internal/server/server.go
+++ b/internal/server/server.go
@@ -32,7 +32,7 @@ var (
 )
 
 type Config struct {
-	Root          string `conf:"default:website"`
+	Root          string `conf:"default:public"`
 	Redirect      bool   `conf:"default:true"`
 	ListenAddress string `conf:"default:localhost"`
 	Port          int    `conf:"default:8080,short:p"`
@@ -132,7 +132,7 @@ func New(runtimeConfig *Config) (*Server, error) {
 		if err != nil {
 			return nil, err
 		}
-		runtimeConfig.Root = "website"
+		runtimeConfig.Root = "public"
 	}
 
 	config, err := cfg.GetConfig()