Commit bafe25fb by iyeonok Committed by bergquist

configure proxy environments for Transport property

related issue: https://github.com/grafana/grafana/issues/9703
parent 8d400b8f
......@@ -75,9 +75,10 @@ func OAuthLogin(ctx *m.ReqContext) {
ctx.Handle(500, "login.OAuthLogin(state mismatch)", nil)
return
}
// handle call back
tr := &http.Transport{
Proxy: http.ProxyFromEnvironment,
TLSClientConfig: &tls.Config{
InsecureSkipVerify: setting.OAuthService.OAuthInfos[name].TlsSkipVerify,
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment