Skip to content

Commit

Permalink
(chocolatey#954) Clarify Proxy Bypass Settings
Browse files Browse the repository at this point in the history
Clarify that Chocolatey treats the proxy bypass settings as a comma
separated list of regular expressions.
  • Loading branch information
corbob committed Apr 5, 2024
1 parent 919dc7d commit 9eebe00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion input/en-us/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Config settings are adjusted using `choco config set --name="'<nameFromBelow>'"
* `proxy` = **' '** - Explicit proxy location.
* `proxyUser` = **' '** - Optional proxy user.
* `proxyPassword` = **' '** - Optional proxy password. Encrypted.
* `proxyBypassList` = **' '** - Optional proxy bypass list. Comma separated.
* `proxyBypassList` = **' '** - Optional regex proxy bypass list. Comma separated.
* `proxyBypassOnLocal` = **'true'** - Bypass proxy for local connections.

### Timeouts
Expand Down
6 changes: 3 additions & 3 deletions input/en-us/guides/usage/proxy-settings-for-chocolatey.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ Chocolatey will automatically pick up the following environment variables if the

* `http_proxy`.
* `https_proxy`.
* `no_proxy`.
* `no_proxy` - Chocolatey will treat this as a comma separated list of regex values.

## Explicit Proxy Settings

Expand All @@ -110,7 +110,7 @@ You can simply configure up to 5 settings and Chocolatey will use a proxy server
choco config set --name="'proxy'" --value="'<LOCATION-AND-PORT>'"
choco config set --name="'proxyUser'" --value="'<USERNAME>'" #optional
choco config set --name="'proxyPassword'" --value="'<PASSWORD>'" # optional, will be encrypted in the configuration file
choco config set --name="'proxyBypassList'" --value="'<BYPASS-LIST-COMMA-SEPARATED>'" # optional
choco config set --name="'proxyBypassList'" --value="'<REGEX-BYPASS-LIST-COMMA-SEPARATED>'" # optional
choco config set --name="'proxyBypassOnLocal'" --value="'true'" # optional
~~~~

Expand All @@ -134,7 +134,7 @@ Results in the following items being added to the config file:

You can pass proxy information at runtime with each command. See https://github.com/chocolatey/choco/issues/1173

`--proxy="'value'" --proxy-user="'<user>'" --proxy-password="'<pwd>'" --proxy-bypass-list="'<comma separated, list>'" --proxy-bypass-on-local`
`--proxy="'value'" --proxy-user="'<user>'" --proxy-password="'<pwd>'" --proxy-bypass-list="'<REGEX-BYPASS-LIST-COMMA-SEPARATED>'" --proxy-bypass-on-local`

## What to do if My Proxy is Socks?

Expand Down

0 comments on commit 9eebe00

Please sign in to comment.