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

SCANNPM-61 Hint support for NO_PROXY in proxy examples #183

Merged
merged 1 commit into from
Dec 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,26 +179,30 @@ or alternatively set variable in `.npmrc`

## Download behind proxy

In order to be able to download binaries when you're behind a proxy it will be enough to set the `http_proxy` or `https_proxy` environment variable. Both support proxies using plain HTTP or HTTPS.
We support the environment variables `http_proxy`/`https_proxy`/`no_proxy` to be able to download binaries behind a proxy.

**Example:**

```shell
export http_proxy=http://mycompanyproxy.com:PORT
export https_proxy=http://mycompanyproxy.com:PORT
#export no_proxy=.some-domain.io # (Optional)

export http_proxy=https://encryptedcompanyproxy.com:PORT
export https_proxy=https://encryptedcompanyproxy.com:PORT
#export no_proxy=.some-domain.io # (Optional)
```

**Behind authenticated proxy:**

```shell
export http_proxy=http://user:[email protected]:PORT
export https_proxy=http://user:[email protected]:PORT
#export no_proxy=.some-domain.io # (Optional)

export http_proxy=https://user:[email protected]:PORT
export https_proxy=https://user:[email protected]:PORT
#export no_proxy=.some-domain.io # (Optional)
```

## License
Expand Down
Loading