aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-08-18 01:50:24 +0800
committerRunxi Yu <me@runxiyu.org>2025-08-18 01:50:24 +0800
commitd1bc8933e4a004324539b8d1f20560045579de4f (patch)
treeb54296921e7be961d984a75316dc780b5e39908a
parentAdd sqlc (diff)
downloadforge-d1bc8933e4a004324539b8d1f20560045579de4f.tar.gz
forge-d1bc8933e4a004324539b8d1f20560045579de4f.tar.zst
forge-d1bc8933e4a004324539b8d1f20560045579de4f.zip
Add templates and static paths to the web config
-rw-r--r--forge.scfg3
-rw-r--r--forged/internal/incoming/web/config.go2
2 files changed, 5 insertions, 0 deletions
diff --git a/forge.scfg b/forge.scfg
index 9ee56e4..fbcea07 100644
--- a/forge.scfg
+++ b/forge.scfg
@@ -25,6 +25,9 @@ web {
# Are we running behind a reverse proxy? If so, we will trust
# X-Forwarded-For headers.
reverse_proxy true
+
+ templates_path /usr/share/lindenii/forge/templates
+ static_path /usr/share/lindenii/forge/static
}
irc {
diff --git a/forged/internal/incoming/web/config.go b/forged/internal/incoming/web/config.go
index 63a7f37..8d32b34 100644
--- a/forged/internal/incoming/web/config.go
+++ b/forged/internal/incoming/web/config.go
@@ -11,4 +11,6 @@ type Config struct {
MaxHeaderBytes int `scfg:"max_header_bytes"`
ReverseProxy bool `scfg:"reverse_proxy"`
ShutdownTimeout uint32 `scfg:"shutdown_timeout"`
+ TemplatesPath string `scfg:"templates_path"`
+ StaticPath string `scfg:"static_path"`
}