Make Nextcloud and Onlyoffice work without proper certificates

We want to test NC+OO integration functionality without proper certs. Right now OO will complain like this without proper certs:

image

Here's a solution, I din't look deep into it though: https://help.nextcloud.com/t/make-nextcloud-onlyoffice-app-accept-self-signed-certificates/83020/12

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information