Change link back to matomo in email alerts

With an AWS hosted matomo, alert emails that have a link back to the system are using the internal ip address of the server, instead of our stats.company.com domain name. Which config value do I need to set in order to get the links in the email to use our domain?