Yes you need to open your config.php in your nextcloud folder on the server. Ad “your domain” into the line after:
‘trusted_domains’ =>
See:
This should work.