Fix TLS errors when using acme/autocert for local connections (#5820) (#5826)

This commit is contained in:
Joona Hoikkala 2019-01-24 09:48:02 +02:00 committed by Lauris BH
parent 3fa49f3780
commit f635041c98

View file

@ -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{