<div dir="ltr"><div>Hello list,</div><div><br></div><div>I&#39;m currently working on embedding Keycloak&#39;s currently dedicated Proxy Server into Keycloak itself.</div><div>For this I need to be able to dynamically configure Undertow&#39;s ProxyHandler and register VirtualHosts at runtime.</div><div>For reference the discussion thread on keycloak-dev ML: [1]</div><div><br></div><div>Keycloak uses the Undertow Subsystem provided by Wildfly 10 which is configured via the standalone(-ha).xml.</div><div><br></div><div>I could already configure a reverse-proxy and additional hosts via jboss-cli but I wonder whether there is an API</div><div>that I could use to get access to the undertow infrastructure from within a JAX-RS endpoint.</div><div>I could probably also use the wildfly management client API or perhaps do something via JMX.</div><div><br></div><div>Would be great if someone could give me a tip or an example for registering / configuring Undertow Handler or Virtual Hosts as described above.</div><div><br></div><div>Btw. I saw that Undertow ships with a io.undertow.server.handlers.proxy.HostTable but I couldn&#39;t find </div><div>any usage of it in the Undertow codebase - did I miss something or is this dead code?</div><div><br></div><div>FYI current code of Keycloak dedicated Proxy Server (uses embedded undertow) can be found here: [0]<br></div><div><br></div><div>Cherrs,</div><div>Thomas</div><div>[0] <a href="https://github.com/keycloak/keycloak/tree/master/proxy">https://github.com/keycloak/keycloak/tree/master/proxy</a><br></div><div>[1] <a href="http://lists.jboss.org/pipermail/keycloak-dev/2016-August/007742.html">http://lists.jboss.org/pipermail/keycloak-dev/2016-August/007742.html</a></div><div><br></div></div>