Nextcloud builtin Collabora Office

Hi there,

I’m trying to migrate our Family-Nextcloud towards NIX PKG. The setup is small, just a handful of users.

I’m starting with the Nextcloud - NixOS Wiki document. But I don’t succeed in getting the built-in Collabora-Service to work.

I’m getting these warnings and error messages:

Could not establish connection to the Collabora Online server.

This might be due to a missing configuration of your web server. For more information, please visit: [Connecting Collabora Online Single Click with Nginx](https://www.collaboraoffice.com/online/connecting-collabora-online-single-click-with-nginx/)

You have not configured the allow-list for WOPI requests. Without this setting users may download restricted files via WOPI requests to the Nextcloud server. [Click here for more info](https://docs.nextcloud.com/server/latest/admin_manual/office/configuration.html#wopi-settings)

Any suggestions?

I’ve been running Collabra as a podman container. I had to run it on a subdomain to give it a URL to put in the Nextcloud Office config. You also have to put the podman container subnet(s) in the setting for allowing WOPI requests.

I see that Collabra is now available in Nixpkgs but I haven’t tried that yet.

I hoped to avoid this. We are only my wife and I and the kids. On my current arch setup, the built-in collabora works well.

I was unable to get the ‘nextcloud app’ version working. I can’t remember the details now (documented how to switch but not why :confused:) but I suspect it was because NixOS doesn’t provide the FHS environment for running non-Nix binaries. Maybe someone more adept with Nix than me could get it figured out…

The built-in server will not work because it’s likely just some binary that assumes a global library path and dynamic loader, both of which do not exist in Nix.

Running the container isn’t that hard though; NixOS has easy to use options for that:

Hello Atemu,

thanks a lot for your information. I realized it just last night, that the extension cannot find libc. It seems clear afterward, but I think it would be great to be mentioned in the docs.

I will the collabora container a try. Are you serving it behind a reverse proxy on a seperate domain?

Greetings Robert

Yes, that’s exactly right. I have a custom abstraction that I use for that purpose, as seen in the lines below what I linked.

Great, thanks. Now it works.

1 Like