Proxy server

How to configure a proxy server

Manual configuration from the user interface

From the main menu, open File > Preferences (Alt + P) and select Proxy Server.

The default configuration is Direct connection (no proxy) and by clicking on Manual proxy configuration you can define a custom proxy server (in the image below, a local proxy like Squid).

In order to fill in the fields, you must refer to the Java documentation .

Proxy configuration

Tip

In some cases it is necessary to restart Weasis.

Configuration at launch

For setting JVM properties at launch, the selection in user interface must be Direct connection (no proxy) or configuration at launch.

Tip

The Java options can be manually set in the section “[JavaOptions]” of Weasis.cfg (in the installed path).

Examples of configuration:

  • Set the default system proxy
    -Djava.net.useSystemProxies=true
  • Set a local proxy like Squid
    -Dhttps.proxyHost=127.0.0.1 -Dhttps.proxyPort=3128
  • Set a proxy in specific domain
    -Dhttps.proxyHost="proxy.mydomain.com" -Dhttps.proxyPort="8080" -Dhttp.proxyHost="proxy.mydomain.com" -Dhttp.proxyPort="8080" -Dhttp.nonProxyHosts="\*.mydomain.com|localhost" -Dhttp.proxyUser="user" -Dhttp.proxyPassword="password"
Note

The Java options can also be passed in the parameters of the URL (e.g. http://localhost:8080/weasis-pacs-connector/weasis?patientID=9702672&pro=“https.proxyHost%20127.0.0.1”&pro=“https.proxyPort%203128”).