summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-01-20 15:39:45 -1000
committerPeter Stone <thepeterstone@gmail.com>2026-01-20 15:39:45 -1000
commitcb592195189685471f054578390b5a6f3440187e (patch)
treefb94188f9ad70dfb6e1237fb11124d4a4d234b1c /cmd
parent0d6d1c3a5bba2777be2f0d9bca30b86ace343757 (diff)
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 <noreply@anthropic.com>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/dashboard/main.go2
1 files changed, 1 insertions, 1 deletions
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)