forked from bellingard/sonar-scanner-npm
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SCANNPM-61 Hint support for NO_PROXY in proxy examples
- Loading branch information
Showing
1 changed file
with
5 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|