From eb825b3f854319ab31cb4ef3c45baf51d16761a9 Mon Sep 17 00:00:00 2001 From: Caleb Gardner Date: Wed, 13 May 2026 03:16:54 -0500 Subject: [PATCH] Added self-hosted git --- main.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 59e03c0..57b6163 100644 --- a/main.go +++ b/main.go @@ -139,8 +139,11 @@ here: func setupWebsite(mux *http.ServeMux) { if !*testing { - url, _ := url.Parse("https://localhost:30000") - mux.Handle("rpg.darkstorm.tech/", httputil.NewSingleHostReverseProxy(url)) + rpgUrl, _ := url.Parse("https://localhost:30000") + mux.Handle("rpg.darkstorm.tech/", httputil.NewSingleHostReverseProxy(rpgUrl)) + + gitUrl, _ := url.Parse("https://darkstorm.tech:3000") + mux.Handle("git.darkstorm.tech/", httputil.NewSingleHostReverseProxy(gitUrl)) } mux.HandleFunc("/", mainHandle) mux.HandleFunc("GET /files/{w...}", filesRequest)