2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 06:47:20 +08:00

fix: build

This commit is contained in:
2025-10-30 00:33:38 +08:00
parent 269bd050bb
commit b5ae62bc70

View File

@@ -33,9 +33,7 @@ func NewHttp(conf *koanf.Koanf, mux *chi.Mux) (*hlfhr.Server, error) {
Handler: mux,
MaxHeaderBytes: 2048 << 20,
})
srv.HttpOnHttpsPortErrorHandler = http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
hlfhr.RedirectToHttps(w, r, http.StatusTemporaryRedirect)
})
srv.Listen80RedirectTo443 = true
if conf.Bool("http.tls") {
srv.TLSConfig = &tls.Config{