UCP change %services% variable

I am wondering where I can change the %services% variable. It is currently just my ip address, which is behind a firewall. I would like to change it to a fully qualified domain name for when it sends the users the login email… Obviously if I just change the %services% to my fqdn I will not get the token at the end of the password reset option.

The “host” is set to the below code in user manager which then distributes it to other modules.

$user['host'] = 'http://'.$_SERVER["SERVER_NAME"];

According to PHP docs:

'SERVER_NAME’
The name of the server host under which the current script is executing. If the script is running on a virtual host, this will be the value defined for that virtual host.

So you need to set that correctly in your apache configs.