From cb592195189685471f054578390b5a6f3440187e Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Tue, 20 Jan 2026 15:39:45 -1000 Subject: Add STATIC_DIR configuration support Allow static file directory to be configured via environment variable for flexible deployment layouts. Also fix gitignore to not ignore cmd/dashboard directory. Co-Authored-By: Claude Opus 4.5 --- cmd/dashboard/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd/dashboard/main.go') diff --git a/cmd/dashboard/main.go b/cmd/dashboard/main.go index 58f954d..de3fb7c 100644 --- a/cmd/dashboard/main.go +++ b/cmd/dashboard/main.go @@ -103,7 +103,7 @@ func main() { r.Post("/logout", authHandlers.HandleLogout) // Serve static files (public) - fileServer := http.FileServer(http.Dir("web/static")) + fileServer := http.FileServer(http.Dir(cfg.StaticDir)) r.Handle("/static/*", http.StripPrefix("/static/", fileServer)) // Protected routes (auth required) -- cgit v1.2.3