Location settings for Collabora online and Update Nginx

Hello,
i have Nextcloud runing on an Proxmox. Nextcloud runns behind an EnginX Proxy. Ich have installed NextcloudOffice and the Collabora Online server. I have to add the following locations settings:

location ~ ^\/nextcloud\/(?:index|remote|public|cron|core\/ajax\/update|status|ocs\/v[12]|updater\/.+|oc[ms]-provider\/.+|.+\/richdocumentscode\/proxy)\.php(?:$|\/) {

Where i have to paste it? Ich have read it comes into the file /etc/nginx/conf.d/mydomain.de.conf . But this file isn’t exist. Can i create it bey myselfe? Is it Correct that in this code is only an “{“ at the end an none “}”? I have this Code from the collabora documentation.

And i have the message that there ist an update to install. How can i do this?

I hope someone can help me.

Thanks
Marc

Can’t really speak to the rest but

Is it Correct that in this code is only an “{“ at the end an none “}”?

That is just the start of a location block, i.e.

location ... {
    ...
}

So you’d also need to figure out what you need to put in there.