Confirmation email url

When creating an account for a new user a confirmation email is sent to the user to allow them to create their password. However the confirmation url is pointing to the local host rather than to the server our virtual machine is running on and so doesn’t work. If the url is manually edited to point to the server it works fine. I assume their is a setting somewhere to generate the correct url for the email. However, I can’t find it. Can anyone describe where this setting can be changed from?

Thanks in advance

use bench set-config