I’m trying to set hostname-debug parameter in Keycloak 21.1.0 to troubleshoot frontend url settings issue, but while starting the keycloak service, the exception throws like “hostname-debug” parameter is not valid.
Our angular application accesses keycloak via nginx reverse proxy from public network, while the API services are accessing keycloak from the private network, but when we setup the public IP as the frontend url, angular application is able to get the token, but the api services token verification breaks and throws Bearer realm=“ris-pacs”, error=“invalid_token”, error_description=“Invalid token issuer. Expected ‘http://lan_IP:port/auth/realms/ris-pacs’, but was ‘http://public_ip:port/auth/realms/ris-pacs’”
Any idea how to handle this scenario?