Browse Source

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

tags/v1.9.0-dev
Joona Hoikkala techknowlogick 7 years ago
parent
commit
3a16d8996c
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      modules/private/internal.go

+ 1
- 0
modules/private/internal.go 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{


Loading…
Cancel
Save