Keycloak available behind both proxy and not

Hi,

Deploying a server with 2 URLs:

When configuring keycloak with proxy support (proxy=reencrypt) on works but not the another and opposite is true.

Is there a way to support both world?

How?

Thanks for your support