Added self-hosted git
This commit is contained in:
@@ -139,8 +139,11 @@ here:
|
|||||||
|
|
||||||
func setupWebsite(mux *http.ServeMux) {
|
func setupWebsite(mux *http.ServeMux) {
|
||||||
if !*testing {
|
if !*testing {
|
||||||
url, _ := url.Parse("https://localhost:30000")
|
rpgUrl, _ := url.Parse("https://localhost:30000")
|
||||||
mux.Handle("rpg.darkstorm.tech/", httputil.NewSingleHostReverseProxy(url))
|
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("/", mainHandle)
|
||||||
mux.HandleFunc("GET /files/{w...}", filesRequest)
|
mux.HandleFunc("GET /files/{w...}", filesRequest)
|
||||||
|
|||||||
Reference in New Issue
Block a user