Nextcloud+onlyoffice 403 Forbidden nginx

Hello @Gordonfreeman

I’d not recommend mounting configs of Document Server from host to the container, it might cause troubles after updating Document Server as configs in newer version may change and disrupt the functionality.

It is easier to update value of securelink by running following script inside the container with Document Server:

bash /usr/bin/documentserver-update-securelink.sh

To run it from host in container for faster way, you do:

docker exec -it <ID> bash /usr/bin/documentserver-update-securelink.sh

Where <ID> is the ID of Docker container with Document Server. Use docker ps to enlist all running containers to get ID.

I hope it’d help.

@Constantine yes this works.

Thanks for your reply!