[undertow-dev] How to configure Undertow programatically at runtime within Wildfly?
Stuart Douglas
sdouglas at redhat.com
Mon Aug 8 23:50:47 EDT 2016
So does this need to proxy all requests, or just requests targeted at
the keycloak deployment? If it is the later then you could just use
ServletExtension to set up the ProxyHandler.
Stuart
On Tue, Aug 9, 2016 at 6:35 AM, Thomas Darimont
<thomas.darimont at googlemail.com> wrote:
> Hello list,
>
> I'm currently working on embedding Keycloak's currently dedicated Proxy
> Server into Keycloak itself.
> For this I need to be able to dynamically configure Undertow's ProxyHandler
> and register VirtualHosts at runtime.
> For reference the discussion thread on keycloak-dev ML: [1]
>
> Keycloak uses the Undertow Subsystem provided by Wildfly 10 which is
> configured via the standalone(-ha).xml.
>
> I could already configure a reverse-proxy and additional hosts via jboss-cli
> but I wonder whether there is an API
> that I could use to get access to the undertow infrastructure from within a
> JAX-RS endpoint.
> I could probably also use the wildfly management client API or perhaps do
> something via JMX.
>
> Would be great if someone could give me a tip or an example for registering
> / configuring Undertow Handler or Virtual Hosts as described above.
>
> Btw. I saw that Undertow ships with a
> io.undertow.server.handlers.proxy.HostTable but I couldn't find
> any usage of it in the Undertow codebase - did I miss something or is this
> dead code?
>
> FYI current code of Keycloak dedicated Proxy Server (uses embedded undertow)
> can be found here: [0]
>
> Cherrs,
> Thomas
> [0] https://github.com/keycloak/keycloak/tree/master/proxy
> [1] http://lists.jboss.org/pipermail/keycloak-dev/2016-August/007742.html
>
>
> _______________________________________________
> undertow-dev mailing list
> undertow-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/undertow-dev
More information about the undertow-dev
mailing list