Skip to content

Instantly share code, notes, and snippets.

@rich-97
Last active June 21, 2019 04:48
Show Gist options
  • Save rich-97/e821f47d3168bcc7da2e65b02e91e8e6 to your computer and use it in GitHub Desktop.
Save rich-97/e821f47d3168bcc7da2e65b02e91e8e6 to your computer and use it in GitHub Desktop.
Link for set proxy env in Ubuntu

Gradlew

https://stackoverflow.com/questions/8938994/gradlew-behind-a-proxy

Android SDK

https://stackoverflow.com/questions/42296708/how-to-set-proxy-for-android-sdk-manager

Git Behind A Proxy

git config --global http.proxy http://<username>:<password>@<proxy-server-url>:<port>

Wget

https://stackoverflow.com/questions/11211705/how-to-set-proxy-for-wget

Curl

Put in the ~/.curlrc file (or create it if it does not exist)

proxy = <proxy_host>:<proxy_port>

Node and NPM

For node set HTTP_PROXY and HTTPS_PROXY bash env.

npm config set proxy http://proxy.company.com:8080
npm config set https-proxy http://proxy.company.com:8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment