Keycloak Proxy Buffering behing Nginx to support Blazor Server (websockets)

Hi,

I have a Keycloak v17 running on Kubernetes, exposed behind an Nginx ingress controller. Keycloak is exposed via its own subdomain like auth.mydomain.com.

Further more, I have a Blazor Server (.net 6) application exposed via the domain example.com, in which I do authentication against the above Keycloak server.

I now have the dilemma, that Blazor Server seems to enforce websocket, which does not allow to set the proxy_buffer to ‘ON’ on the ingress route, whilst Keycloak requires it. Is there a way to let Keycloak successfully run with proxy_buffering=‘OFF’ behind Nginx ingress?

Thanks