Go / Rust / Java / .NET
Dependency downloads for other major languages.
Go
Go uses proxy.golang.org by default and reads the environment variables:
export HTTPS_PROXY=http://127.0.0.1:7898
go env -w GOPROXY=https://proxy.golang.org,direct
go mod downloadSet GOPRIVATE for private repositories so they don't go through the public module proxy.
Rust (cargo, rustup)
~/.cargo/config.toml:
[http]
proxy = "http://127.0.0.1:7898"rustup reads the environment variables:
export HTTPS_PROXY=http://127.0.0.1:7898
rustup updateJava · Maven
~/.m2/settings.xml:
<settings>
<proxies>
<proxy>
<id>coderboost</id>
<active>true</active>
<protocol>http</protocol>
<host>127.0.0.1</host>
<port>7898</port>
<nonProxyHosts>localhost|127.0.0.1</nonProxyHosts>
</proxy>
</proxies>
</settings>Java · Gradle
~/.gradle/gradle.properties:
systemProp.http.proxyHost=127.0.0.1
systemProp.http.proxyPort=7898
systemProp.https.proxyHost=127.0.0.1
systemProp.https.proxyPort=7898
systemProp.http.nonProxyHosts=localhost|127.0.0.1.NET (NuGet)
dotnet nuget config set http_proxy http://127.0.0.1:7898Or set the HTTPS_PROXY environment variable.
Ruby / PHP / Dart
- RubyGems and Bundler read
https_proxy; or usegem install --http-proxy http://127.0.0.1:7898 <gem>. - Composer reads
HTTPS_PROXY/HTTP_PROXY. - Dart / Flutter read
HTTPS_PROXY.