Update domain router to work differntly but similarly to httpuitl reverseproxy

This commit is contained in:
Pablu23
2025-09-26 16:29:32 +02:00
parent c59317796f
commit 2d8323809a
3 changed files with 227 additions and 94 deletions

View File

@@ -40,7 +40,7 @@ func main() {
router := domainrouter.New(config, client)
mux := http.NewServeMux()
mux.HandleFunc("/", router.Route)
mux.HandleFunc("/", router.ServeHTTP)
if config.General.AnnouncePublic {
h, err := url.JoinPath("/", config.General.HealthEndpoint)