From d1bc8933e4a004324539b8d1f20560045579de4f Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Mon, 18 Aug 2025 01:50:24 +0800 Subject: [PATCH] Add templates and static paths to the web config --- forge.scfg | 3 +++ forged/internal/incoming/web/config.go | 2 ++ diff --git a/forge.scfg b/forge.scfg index 9ee56e4942c7b2fc8ced6ea552655d7876e7d47b..fbcea07c306481b96d5f0c0aa2285ed0cefe08af 100644 --- a/forge.scfg +++ b/forge.scfg @@ -25,6 +25,9 @@ # 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 63a7f37b7aba5cafecf8cb845fdd8f91e3980a8e..8d32b343b45689fa346c371f7a582529b980d308 100644 --- a/forged/internal/incoming/web/config.go +++ b/forged/internal/incoming/web/config.go @@ -11,4 +11,6 @@ IdleTimeout uint32 `scfg:"idle_timeout"` 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"` } -- 2.48.1