Skip to content

Commit

Permalink
Fix TLS errors when using acme/autocert for local connections (#5820)
Browse files Browse the repository at this point in the history
  • Loading branch information
joohoi authored and techknowlogick committed Jan 24, 2019
1 parent 331c912 commit 3b36402
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/private/internal.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 3b36402

Please sign in to comment.