fix: таймауты, ReadFile error, ?bucket= убран, USER registry

This commit is contained in:
“Naeel”
2026-08-09 14:28:56 +04:00
parent 575ba6dcb3
commit 37d69ead42
3 changed files with 20 additions and 6 deletions
+6 -1
View File
@@ -64,7 +64,12 @@ func rootHandler(w http.ResponseWriter, r *http.Request) {
return
}
w.Header().Set("Content-Type", "text/html; charset=utf-8")
tmpl, _ := templateFS.ReadFile("templates/index.html")
tmpl, err := templateFS.ReadFile("templates/index.html")
if err != nil {
log.Printf("root: template read error: %v", err)
http.Error(w, "Internal Server Error", http.StatusInternalServerError)
return
}
html := strings.Replace(string(tmpl), "{{.Version}}", VERSION, 1)
fmt.Fprint(w, html)
}