How to enable proxy settings in QMetry App docker?

To configure the proxy for the QMetry app docker, you can refer to the following configuration details that need to be done in the docker.

Configuring proxy variables in the `setenv.sh` file

  1. Go to the docker container using the command - docker exec -it qmetry_app_1 bash

  2. Edit the setenv.sh file located under /home/qmetry/QMetry/bin folder

    1. cd bin

    2. vim setenv.sh

  3. Edit the value of the “CATALINA_OPTS“ & “JAVA_OPTS” variables, and add the parameters -Dhttp.proxySet, -Dhttp.proxyHost, -Dhttp.proxyPort, -Dhttps.proxyHost, -Dhttps.proxyPort, -Dhttp.nonProxyHosts as shown below. Replace the proxy server host details from proxy.qmetry.com with your hostname.

    • Note: The -Xms and -Xmx values could differ and they do not need to be updated.

      export CATALINA_OPTS="$CATALINA_OPTS -Duser.timezone=UTC -Dhttp.proxyHost=proxy.qmetry.com -Dhttp.proxyPort=10262 -Dhttps.proxyHost=proxy.qmetry.com -Dhttps.proxyPort=10262 -Dhttp.nonProxyHosts=10.105.104.211" export JAVA_OPTS="$JAVA_OPTS -Xms2g -Xmx4g -Dfile.encoding=UTF8 -Dhttp.proxySet=true -Dhttp.proxyHost=proxy.qmetry.com -Dhttp.proxyPort=10262 -Dhttps.proxyHost=proxy.qmetry.com -Dhttps.proxyPort=10262 -Dhttp.nonProxyHosts=10.105.104.211"
  4. Save the file and exit the container - Esc followed by :wq

  5. Restart QMetry App docker container - docker restart qmetry_app_1