Swarm uses the default ProxySelector
, which supports customization of the HTTP client through system properties.
Use the following system properties to configure a proxy:
-
http.proxyHost
-
http.proxyPort
-
https.proxyHost
-
https.proxyPort
-
http.nonProxyHosts
For example:
$ java \
-Dhttp.proxyHost=127.0.0.1 \
-Dhttp.proxyPort=3128 \
-jar swarm-client.jar
For more information about these properties, see the Java documentation.