configure proxy environments for Transport property
related issue: https://github.com/grafana/grafana/issues/9703
This commit is contained in:
1 parent
8d400b8f7b
commit
bafe25fbd9
1 file changed
+2
-1
@@ -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,
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user