A little late to this party, but I have identical setup (configured around 2019) and in my config there is ProxyVia On
in the reverse proxy for the wildfly app. (Assuming you confirmed it's not a certificate issue, by temporarily disabling the trust manager in the keycloak.json.)