Set the domain in the Config and use it to set the canonical link in the header.