From d1bc8933e4a004324539b8d1f20560045579de4f Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Mon, 18 Aug 2025 01:50:24 +0800 Subject: Add templates and static paths to the web config --- forge.scfg | 3 +++ forged/internal/incoming/web/config.go | 2 ++ 2 files changed, 5 insertions(+) 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"` } -- cgit v1.2.3