Site title URL using IP instead of URL

Using Ghost CLI 1.24.0, latest version of Ghost

It took me some time to buy the domain, and then I set everything up on the domain.
One thing that remains is the title. I disabled the logo, and it’s just displaying the title, but the link is to the old IP URL, not the new domain name. I checked the template and it just displays @site.name, and no hyperlink, so I presume it’s stored somewhere. Under settings, Site name, it’s just a name, no URL is configured.

Where is this located?

I’m noticing this script in the beginning of the site:

    <script type="application/ld+json">
{
    "@context": "https://schema.org",
    "@type": "WebSite",
    "publisher": {
        "@type": "Organization",
        "name": "Website name",
        "url": "http://159.89.28.199:2368/",
        "logo": {
            "@type": "ImageObject",
            "url": "http://159.89.28.199:2368/favicon.ico"
        }
    },
    "url": "http://159.89.28.199:2368/",
    "image": {
        "@type": "ImageObject",
        "url": "http://159.89.28.199:2368/content/images/2023/04/site_header.jpg",
        "width": 1640,
        "height": 664
    },
    "mainEntityOfPage": {
        "@type": "WebPage",
        "@id": "http://159.89.28.199:2368/"
    },
    "description": "Bla bla"
}
    </script>

Where is this stored in the database (or any other file)?

Edit config.production.json and replace IP address in “url:” element with the FQDN, e.g., https://site.name. Then restart Ghost.

This is what it looks like:

{
  "url": "https://www.theurl.com:2368",
  "server": {
    "port": 2368,
    "host": "::"
  },
  "mail": {
    "transport": "Direct"
  },
  "logging": {
    "transports": [
      "file",
      "stdout"
    ]
  },
  "process": "systemd",
  "paths": {
    "contentPath": "/var/lib/ghost/content"
  }
}

Still the issue persists.
Even in the admin it seems to think it’s the IP, not the domain.