Increase expiration time link in reset password mail

Hi
how can I increase the expiration time link in reset password email?

Try Realm settings -> Tokens:

thnx, do you also know how to place a custom reset link in mail kc send to user that want to reset password?

https://www.keycloak.org/docs/latest/server_development/index.html#emails

yuo mean to set the custom url in the {0} parameter?

passwordResetSubject=My password recovery
passwordResetBody=Reset password link: {0}
passwordResetBodyHtml=<a href="{0}">Reset password</a>

is it safe? No security issue?