Support allowed hosts for migrations to work with proxy (#32025)

This commit is contained in:
Jason Song authored and GitHub committed 2024-09-11 05:47:00 +00:00
1 parent def1c9670b
commit 125679f2e1
4 files changed
+3 -11

No files matched your search

+1 -1
View File
@@ -303,7 +303,7 @@ func Init() error {
Transport: &http.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: setting.Webhook.SkipTLSVerify},
Proxy: webhookProxy(allowedHostMatcher),
DialContext: hostmatcher.NewDialContextWithProxy("webhook", allowedHostMatcher, nil, setting.Webhook.ProxyURLFixed),
DialContext: hostmatcher.NewDialContext("webhook", allowedHostMatcher, nil, setting.Webhook.ProxyURLFixed),
},
}