diff --git a/cmd/web.go b/cmd/web.go index 69f9b9430..e87bf01bf 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -80,8 +80,7 @@ func runLetsEncrypt(listenAddr, domain, directory, email string, m http.Handler) Cache: autocert.DirCache(directory), Email: email, } - go http.ListenAndServe(":80", certManager.HTTPHandler(nil)) // all traffic coming into HTTP will be redirect to HTTPS automatically - // required for letsencrypt validation + go http.ListenAndServe(":http", certManager.HTTPHandler(nil)) // all traffic coming into HTTP will be redirect to HTTPS automatically (LE HTTP-01 validatio happens here) server := &http.Server{ Addr: listenAddr, Handler: m,