Update Xwiki using a proxy

The connection to nexus.xwiki.org is blocked on my server,how can I update xwiki using a proxy?

This depends on your environment … Linux/Windows and the Java Container used. For Tomcat this would probably be something like this

SET JAVA_OPTS=%JAVA_OPTS% -Dhttp.proxyHost= -Dhttp.proxyPort=

For https url’s, use “https.proxyHost” and “https.proxyPort”

solved,seemed to duplicated with Standalone version behind proxy.
I’m using tomcat with catalina installed by deb package, so the settings locate in /usr/share/tomcat9/bin/catalina.sh

Actually as suggested on https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Installation/InstallationViaAPT/#HTomcat-1 a more accurate configuration file is /etc/default/tomcat9.

Hi folks,

I searched and found this article here because I want to set my proxy for internet connection for my xwiki container. I saw the command “SET JAVA_OPTS=%JAVA_OPTS% -Dhttp.proxyHost= -Dhttp.proxyPort=” in this article should help me with that but now I want to know how I can use this command in a “docker run” command.
Can someone please help me with that?

Thanks!

Kind regards
Dennis