From f635041c98020df6f7cfc7b28d77a52a50155e4d Mon Sep 17 00:00:00 2001 From: Joona Hoikkala Date: Thu, 24 Jan 2019 09:48:02 +0200 Subject: [PATCH] Fix TLS errors when using acme/autocert for local connections (#5820) (#5826) --- modules/private/internal.go | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/private/internal.go b/modules/private/internal.go index a230bc744ca3..b1c868b40fda 100644 --- a/modules/private/internal.go +++ b/modules/private/internal.go @@ -39,6 +39,7 @@ func decodeJSONError(resp *http.Response) *Response { func newInternalRequest(url, method string) *httplib.Request { req := newRequest(url, method).SetTLSClientConfig(&tls.Config{ InsecureSkipVerify: true, + ServerName: setting.Domain, }) if setting.Protocol == setting.UnixSocket { req.SetTransport(&http.Transport{