pottava/aws-s3-proxy

Support for HTTP Proxy for AWS SDK

alx13 opened this issue · 1 comments

alx13 commented

Problem: AWS SDK HTTP client is customly constructed without Proxy, hence whole thing is not working behind proxy.
Solution:
Add proxy here
Like:

	transport := &http.Transport{
		Proxy:              http.ProxyFromEnvironment,
		MaxIdleConns:       config.Config.MaxIdleConns,
		IdleConnTimeout:    config.Config.IdleConnTimeout,
		DisableCompression: config.Config.DisableCompression,
		TLSClientConfig:    tlsCfg,
	}

@alx13 That's a great idea! Thanks, I will add the line:)