Error in nginx and collabora installation

Hello all,

i use an rsp4 with openmediavault and nextcloud in a docker container, i tried to install collabora, but now i crashed my setting, the nginx status failed and in the log file is the following error

"location" directive is not allowed here in /etc/nginx/conf.d/nextcloud.conf:1

Moreover before i tried to install the other server, i can access via the IP address the openmediavault web menu, but now i only get the following screen
Standard screen of swag

And over the IP with an Port i access to an file browser but now i get the error message in the screen

Have someone an idea what i make wrong and can help me fix this