I want to create a docker container for xwiki with a proxy connection. How can I set the proxy in the docker run command that XWiki can connect to the internet through the proxy?
Thanks for your help already!
It would be very great if these proxy settings could be configured in an other config file than the start.sh of xwiki. Currently with each update the proxy config has to be done again.
Hi Vincent, sorry I wasn’t completely paying attention to this being a docker related thread.
My comment was more about Debian package with XJetty. As the XJetty start sh is overwritten during each update the proxy configuration in that is overwritten each time.
I ran into something similar before, and setting the proxy variables in the environment section of the Docker run command worked fine. I used HTTP_PROXY and HTTPS_PROXY for simple needs. If you’re using Rotating proxies, just make sure the container trusts the proxy’s cert if it’s custom. Also, sometimes you need to pass those same proxy env vars to the JVM through JAVA_OPTS.