Back to QMetry All Products Help Page
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
Go to the docker container using the command -
docker exec -it qmetry_app_1 bash
Edit the
setenv.sh
file located under/home/qmetry/QMetry/bin
foldercd bin
vim setenv.sh
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 fromproxy.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"
Save the file and exit the container -
Esc
followed by:wq
Restart QMetry App docker container -
docker restart qmetry_app_1
Back to QMetry All Products Help Page