Skip to content

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

Open
Batro wants to merge 1 commit intobothub-it:masterfrom
Batro:feature/add_auto_setting_for_proxy_env_vars
Open

Add proxies property based on environment variables for HTTP requests#3
Batro wants to merge 1 commit intobothub-it:masterfrom
Batro:feature/add_auto_setting_for_proxy_env_vars

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