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{