First, a quick note: jira.xwiki.org is our issue tracker for bug reports and feature requests, not a place to ask questions. For questions and help, please use the community forum at [https://forum.xwiki.org/|https://forum.xwiki.org/] where the community can assist you.
Regarding your request: XWiki running in the Docker image can already be made proxy\-aware without editing the running container. The image lets you pass any JVM system property through the JAVA\_OPTS {{JAVA_OPTS}} environment variable \(see the "Passing JVM Options" section of the README\), and {{ tomcat/setenv.sh}} preserves whatever you set there.
Since the JVM's proxy support is driven by standard system properties, you just pass them via JAVA\_OPTS {{JAVA_OPTS}}. With docker\-compose, add them to the "web" service \(directly or via .env\):
Or with plain docker run: \ {{-e JAVA\_OPTS JAVA_OPTS="\-Dhttp.proxyHost=... \-Dhttp.proxyPort=... \-Dhttps.proxyHost=... \-Dhttps.proxyPort=..."}}
These flags are merged with the image's default JVM options \(memory, encoded\-slash handling, etc.\), so nothing is lost. Given this already works out of the box, I'm closing this issue. Please continue the discussion on the forum if JAVA\_OPTS {{JAVA_OPTS}} doesn't cover your use case.
This message was sent by Atlassian Jira (v9.3.0#930000-sha1:287aeb6)
If image attachments aren't displayed, see this article.