Swarm uses HttpClientBuilder, 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.jarFor more information about these properties, see the Java documentation.