mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-28 12:16:17 +01:00
Fix TLS errors when using acme/autocert for local connections (#5820)
This commit is contained in:
parent
331c9120e8
commit
3b364029f7
1 changed files with 1 additions and 0 deletions
|
@ -39,6 +39,7 @@ func decodeJSONError(resp *http.Response) *Response {
|
||||||
func newInternalRequest(url, method string) *httplib.Request {
|
func newInternalRequest(url, method string) *httplib.Request {
|
||||||
req := newRequest(url, method).SetTLSClientConfig(&tls.Config{
|
req := newRequest(url, method).SetTLSClientConfig(&tls.Config{
|
||||||
InsecureSkipVerify: true,
|
InsecureSkipVerify: true,
|
||||||
|
ServerName: setting.Domain,
|
||||||
})
|
})
|
||||||
if setting.Protocol == setting.UnixSocket {
|
if setting.Protocol == setting.UnixSocket {
|
||||||
req.SetTransport(&http.Transport{
|
req.SetTransport(&http.Transport{
|
||||||
|
|
Loading…
Reference in a new issue