Skip to content

Instantly share code, notes, and snippets.

@imjamespond
Last active June 26, 2018 04:29
Show Gist options
  • Save imjamespond/88bff4721ddc662c868ab71c1054053d to your computer and use it in GitHub Desktop.
Save imjamespond/88bff4721ddc662c868ab71c1054053d to your computer and use it in GitHub Desktop.
proxy
windows proxy.md

export http_proxy=http://localhost:8080
or
export https_proxy=https://localhost:8080

ALL_PROXY=socks5://127.0.0.1:1080 brew upgrade
also works
export all_proxy="socks5://127.0.0.1:1080"; curl'https://api.ipify.org?format=json'

###Setup npm proxy
For HTTP:
npm config set proxy http://proxy_host:port
For HTTPS:
npm config set https-proxy http://proxy.company.com:8080
npm config delete
npm install some-package --verbose

#windows
set HTTP_PROXY=http://127.0.0.1:1080
set HTTPS_PROXY=https://127.0.0.1:1080

#gradle.properties
systemProp.http.proxyHost=127.0.0.1
systemProp.http.proxyPort=1080
systemProp.https.proxyHost=127.0.0.1
systemProp.https.proxyPort=1080

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment