NGINX reverse proxy: Unauthorized WOPI host

Yes, that is the solution if you use a internal collabora server.
When you use a remote collabore server, you have to give also the nextcloud installation and the collabora server location:

'domain=collaboradomain\\.tld|nextclouddomain\\.tld'