Emails linking to IP address?

Hopefully this is a quick question. The notification emails are linking to the IP address of the server, not the CNAME / hostname. Example (with some identifying info blanked for good measure):

47%20PM

Is there a setting that controls this? I am using LetsEncrypt for certificate management, and when linked directly to the IP address the user gets an SSL cert violation page. I could dig into how to fix the cert, but I would rather just have XWiki send emails that link to the hostname. Thanks!