The proxy is enabled by default. To disable the proxy:
config/application.properties.proxy.enabled=true.true and type false.true.Note: If the proxy is not explicitly configured in application.properties (for example, proxy.enabled=false or not set), the Gateway Agent automatically attempts to detect prox settings from your system environment.
The proxy behavior is controlled in config/application.properties via proxy.type, which supports the following three options:
proxy.type=system: Use the system proxy settings.proxy.type=static: Use a fixed proxy configuration.proxy.type=pac: Use a PAC file for proxy configuration.Note: Use this option if you have a traditional, fixed proxy server (hostname and port).
The following properties are required:
proxy.enabled=true proxy.type=static proxy.host=proxy.company.com proxy.port=8080
If your proxy server requires a username and password, add the following properties, replacing the username and password values with your required values:
proxy.username=john.doe proxy.password=secretpass
Note: Use this option if your organization provides a PAC file (Proxy Auto-Configuration) that tells clients the proxy to use for each destination.
The following properties are required:
proxy.enabled=true proxy.type=pac proxy.pac-url=http://proxy.company.com/proxy.pac
proxy.pac-url defines the location of the PAC file. The location can be one of the following formats:
http://proxy.company.com/proxy.pacfile:///C:/config/proxy.pac or file:///etc/proxy/proxy.pacIf your proxy server requires a username and password, add the following properties, replacing the username and password values with your required values:
proxy.username=john.doe proxy.password=secretpass
This method is not recommended. There are 2 options to set system properties:
Use the following command to pass system properties directly to the Java process when starting the Gateway Agent:
java -Dhttps.proxyHost=proxy.company.com -Dhttps.proxyPort=8443 -jar agent-server.jar
or use the following HTTP:
java -Dhttp.proxyHost=proxy.company.com -Dhttp.proxyPort=8080 -jar agent-server.jar
Use the following commands for Linux or Mac:
export HTTPS_PROXY="http://proxy.company.com:8080" # or export HTTP_PROXY="http://proxy.company.com:8080" java -jar agent-server.jar
Use the following commands for Windows (PowerShell):
$env:HTTPS_PROXY = "http://proxy.company.com:8080" java -jar agent-server.jar
2026-01-28 06:58:52 [main] INFO c.s.g.agent.config.OkHttpConfig - SSL configured to trust all certificates. 2026-01-28 06:58:52 [main] INFO c.s.g.a.config.ProxyResolverService - Loading PAC file from: file:///C:/Users/Administrator/Downloads/pac.pac 2026-01-28 06:58:52 [main] INFO c.s.g.a.config.ProxyResolverService - Successfully initialized PAC proxy resolver 2026-01-28 06:58:52 [main] INFO c.s.g.agent.config.OkHttpConfig - Configured proxy authentication for user: myUser 2026-01-28 06:58:52 [main] INFO c.s.g.agent.config.OkHttpConfig - Configured PAC-based proxy from: file:///C:/Users/Administrator/Downloads/pac.pac