Configure Nextcloud to work with Collabora only on local network with truenas self-signed certificate

Hey everyone!

I am trying to set up Nextcloud and Collabora apps which I installed via the Discover.

I plan to use them only from my local network.

In Nextcloud I’ve installed the Nextcloud Office app and configured it:

  • to use my own server of Collabora at https:// 192.168.xxx.xxx:9980 URL
  • I’ve checked the “Disable certificate verification“ (Enable if your Collabora Online server uses a self signed certificate), because I want to use the self-signed certificate that Truenas issued.
  • I’ve configured the allowlist for WOPI requests to be the same IP address;
  • There is a notification in the Nextcloud Office configuration that Collabora Online server is reachable.

When I try to open a file that is supposed to be opened by Collabora, I receive this error message:
”Unauthorized WOPI host. Please try again later and report to your administrator if the issue persists. Authorization error was: ‘self-signed certificate’.”

I tried adding an extra parameter in the Collabora configuration:
–o:ssl.ssl_verification=false
, but it does not work as well.

I also see in the network that some websocket connection closes with an error:

Connection Closed: 1008 error: cmd=internal kind=unauthorized

I am out of ideas and decided to ask for help here.

Thank you in advance!