Skip to content

Commit

Permalink
SCANNPM-61 Hint support for NO_PROXY in proxy examples
Browse files Browse the repository at this point in the history
  • Loading branch information
7PH committed Dec 12, 2024
1 parent 1903754 commit 281bbb4
Showing 1 changed file with 5 additions and 1 deletion.
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

0 comments on commit 281bbb4

Please sign in to comment.