Ho to configure proxy settings in WildFly

This tutorial covers how to configure WildFly to use Proxy settings to manage connections through a Proxy and, if needed, Proxy authorization.

Configuring WildFly to use Proxy Host settings is not different from any other Java application. Basically you need to include the following System Properties in your start script:

  • http.proxyHost: the host name of the proxy server
  • http.proxyPort: the port number, the default value being 80.
  • http.nonProxyHosts:a list of hosts that should be reached directly, bypassing the proxy. This is a list of patterns separated by β€˜|’.
  • http.proxyUser=The proxy user name if needed
  • http.proxyPassword=The proxy password if needed.

Adding Proxy Settings to WildFly

As an example, we will add the proxy settings to WildFly standalone server through standalone.conf file:

JAVA_OPTS="$JAVA_OPTS -Djboss.modules.system.pkgs=$JBOSS_MODULES_SYSTEM_PKGS -Djava.awt.headless=true -Dexo.product.developing=true -Denvironment=production -Dhttp.proxyHost=192.168.10.1 -Dhttp.proxyPort=8080 -Dhttp.nonProxyHosts=localhost\|127.0.0.1\|10.10.10.* -Dhttp.proxyUser=user
-Dhttp.proxyPassword=password"
Found the article helpful? if so please follow us on Socials