Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding proxy support that was present in Fog back #131

Merged
merged 2 commits into from
May 27, 2015
Merged

Conversation

tyler-ball
Copy link
Contributor

Fixes #126

\cc @fnichol @litjoco

I added a config option that defaults to ENV['HTTP_PROXY']. @litjoco as you pointed out, there is only 1 :http_proxy setting available in the AWS Ruby SDK V2, so we cannot specify a different :https_proxy. But I set up a local mitmproxy and tested that HTTPS requests worked through this proxy when specifying ENV['HTTP_PROXY']

But because all the requests to AWS were actually https requests, I'm thinking of trying to first default to ENV['HTTPS_PROXY'] then falling back to ENV['HTTP_PROXY']. Would this support your use case better? Or are both environment variables typically pointing to the same proxy?

I'm also adding in the 0.9.2 release prep here because this is the last PR I'm waiting on for that release.

@litjoco
Copy link

litjoco commented May 27, 2015

@tyler-ball yes - I agree with your thinking - prefer HTTPS_PROXY if set

@tyler-ball
Copy link
Contributor Author

@metadave @litjoco I updated to prefer HTTPS over HTTP - as soon as Travis finishes I'll release 0.9.2!

tyler-ball added a commit that referenced this pull request May 27, 2015
Adding proxy support that was present in Fog back
@tyler-ball tyler-ball merged commit 9f7d063 into master May 27, 2015
@tyler-ball tyler-ball deleted the tball/proxy branch May 27, 2015 14:54
@fnichol
Copy link
Contributor

fnichol commented May 27, 2015

That's looking good to me. Good idea preserving the :http_proxy config name though as it's used in other plugins, so easier consume that.

@fnichol
Copy link
Contributor

fnichol commented May 27, 2015

Oh, and 👍 , heh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for proxy?
3 participants