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

Add proxies property based on environment variables for HTTP requests #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Batro
Copy link

@Batro Batro commented Mar 13, 2019

In its current state, portainer-cli does not work behind a corporate proxy: all HTTP requests behind a proxy return a timeout.
In this feature I added a 'proxies' dictionnary which is set at startup and based on 'HTTP_PROXY' and 'HTTPS_PROXY' env variables, and then this 'proxies' dictionnary is passed to all requests.
If both HTTP_PROXY and HTTPS_PROXY are unset or empty, 'proxies' dict stays empty.

@dougppaz
Copy link
Contributor

Saint @edudouglas you can check this?

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.

2 participants