summaryrefslogtreecommitdiff
path: root/internal/config
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 /internal/config
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 'internal/config')
-rw-r--r--internal/config/config.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/config/config.go b/internal/config/config.go
index b3bc43d..662159e 100644
--- a/internal/config/config.go
+++ b/internal/config/config.go
@@ -17,6 +17,7 @@ type Config struct {
// Paths
DatabasePath string
TemplateDir string
+ StaticDir string
// Server
Port string
@@ -36,6 +37,7 @@ func Load() (*Config, error) {
// Paths
DatabasePath: getEnvWithDefault("DATABASE_PATH", "./dashboard.db"),
TemplateDir: getEnvWithDefault("TEMPLATE_DIR", "web/templates"),
+ StaticDir: getEnvWithDefault("STATIC_DIR", "web/static"),
// Server
Port: getEnvWithDefault("PORT", "8080"),