Skip to content

Commit 19396a1

Browse files
torrickcarmstrong
authored andcommitted
feat(client): add proxy support
Added proxy support via environment variables.
1 parent 688bfb6 commit 19396a1

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

client/deis.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ def __init__(self):
8484
cookie_file = os.path.expanduser('~/.deis/cookies.txt')
8585
cookie_dir = os.path.dirname(cookie_file)
8686
self.cookies = MozillaCookieJar(cookie_file)
87+
self.proxies = {
88+
"http": os.getenv("http_proxy"),
89+
"https": os.getenv("https_proxy")
90+
}
8791
# Create the $HOME/.deis dir if it doesn't exist
8892
if not os.path.isdir(cookie_dir):
8993
os.mkdir(cookie_dir, 0700)

docs/using_deis/install-client.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,17 @@ You can also install the latest Deis client using Python's pip_ package manager:
3434
3535
$ deis
3636
Usage: deis <command> [<args>...]
37+
38+
Proxy Support
39+
-------------
40+
41+
Set your http and/or https environment variables to enable proxy support
42+
43+
.. code-block:: console
44+
45+
$ export http_proxy="http://proxyip:port"
46+
$ export https_proxy="http://proxyip:port"
47+
3748
3849
Integrated Help
3950
---------------

0 commit comments

Comments
 (0)