Skip to content

Commit

Permalink
docs: Document proxy environment variable usage. (#733)
Browse files Browse the repository at this point in the history
* docs: Document proxy environment variable usage.

* fix typo in proxy setting doc
  • Loading branch information
zhengtianbao authored Oct 26, 2021
1 parent 6edc70f commit 1649da8
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions site/content/docs/user-guide/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,17 @@ variable in your `~/.bashrc`, `~/.bash_profile`, or `~/.zshrc`:
export KREW_DEFAULT_INDEX_URI='[email protected]:foo/custom-index.git'
```

## Configure network proxy {#custom-network-proxy}

If you want to use Krew with an HTTP proxy, you can configure environment
variables HTTP_PROXY, HTTPS_PROXY and NO_PROXY. Behavior of these
environment variables are explained [here][httpproxy].

```shell
export HTTP_PROXY="proxy-ip:port"
export HTTPS_PROXY="proxy-ip:port"
export NO_PROXY="ip1,ip2:port2,.example.com"
```

[ki]: https://github.com/kubernetes-sigs/krew-index
[httpproxy]: https://pkg.go.dev/golang.org/x/net/http/httpproxy#Config

0 comments on commit 1649da8

Please sign in to comment.