<p>We use Keycloak REST api to send update password email to users. In my setup Keycloak and application making REST calls to Keycloak (using keycloak admin client library) is deployed inside Kubernetes cluster. From my application I am using Kubernetes service name to talk to keycloak. </p>

<p>e.g. <a href="http://keycloak-http:8100/auth" rel="nofollow noreferrer">http://keycloak-http:8100/auth</a></p>

<p>With this setup, update password link in email becomes like this
<a href="http://keycloak-http:8100/auth/realms/test/login-actions/action-token?key=somekey" rel="nofollow noreferrer">http://keycloak-http:8100/auth/realms/test/login-actions/action-token?key=somekey</a></p>

<p>So I need to change only host in this URL. </p>

<p>I looked at executeActions.ftl file in keycloak theme and it doesn't have any specific parameter for just host which I can customize. </p>

<p>Any ideas how I can achieve this?</p>

<p>Thanks in advance. </p>

Priti
<p>In my case, Keycloak 9+, I used the &quot;Frontend URL&quot; in the Realm Setting to specify the hostname.
<a href="https://i.stack.imgur.com/gXfMu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gXfMu.png" alt="enter image description here" /></a></p>
