Domain in mail notification

I configured xwiki with https and access by domain.
I received the notification from self-hosted xwiki, but the links in the mail are all IP which could not be accessed over https.

How can I fix it?