mirror of
https://github.com/versity/versitygw.git
synced 2026-09-22 07:54:14 +00:00
Merge pull request #2305 from andreibe24/feature/support-proxy-envs
fix: support proxy
This commit is contained in:
@@ -231,6 +231,7 @@ func (s *IAMServiceS3) getConfig() (aws.Config, error) {
|
||||
|
||||
tr := &http.Transport{
|
||||
TLSClientConfig: &tls.Config{InsecureSkipVerify: s.sslSkipVerify},
|
||||
Proxy: http.ProxyFromEnvironment,
|
||||
}
|
||||
client := &http.Client{Transport: tr}
|
||||
|
||||
|
||||
@@ -59,6 +59,7 @@ func (s *S3Proxy) getConfig(ctx context.Context, access, secret string) (aws.Con
|
||||
|
||||
tr := &http.Transport{
|
||||
TLSClientConfig: &tls.Config{InsecureSkipVerify: s.sslSkipVerify},
|
||||
Proxy: http.ProxyFromEnvironment,
|
||||
}
|
||||
client := &http.Client{Transport: tr}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user