scheme from conf
This commit is contained in:
@@ -345,11 +345,12 @@ func (s *Server) Home(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
w.Header().Set("Content-Type", "text/html")
|
||||
|
||||
if err := tmpl.Execute(w, map[string]any{
|
||||
"routePrefixes": routePrefixes,
|
||||
"domain": r.Host,
|
||||
"baseDomain": strings.Join(strings.Split(r.Host, ".")[1:], "."),
|
||||
"scheme": r.URL.Scheme,
|
||||
"scheme": getScheme().String(),
|
||||
}); err != nil {
|
||||
http.Error(w, err.Error(), http.StatusInternalServerError)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user