Getting Error in nextcloud using truenas scale

You ignored half the support template so we can only speculate. It’s likely one of the hostnames listed in your config (or the scheme).

If I had to guess, your overwrite.cli.url value.

See it’s coverage in the Admin Manual for the appropriate syntax: Configuration Parameters — Nextcloud latest Administration Manual latest documentation