Collabora no longer working with NC 23

Collabora was working great but stopped after I upgraded to NC 23. I’ve been look at the collabora and nextcloud forums to find the answer but I need some help.

My setup:
TrueNAS core 12.2U8 with ubuntu VM running a docker container of collabora/code.

version: '3.3'
services:
  code:
    ports:
      - '9980:9980'
    container_name: collabora-code
    environment:
      - domain=cloud\.mydomain\.com
      - server_name=collabora\.mydomain\.com
      - username=admin
      - password=secret
      - 'extra_params=--o:ssl.enable=false --o:ssl.termination=true'
    restart: always
    image: collabora/code

I’m using a caddy jail (192.168.5.81) as my reverse proxy to my nextcloud (192.168.5.83) and the collabora VM is (192.168.5.89)
My caddy file was:

collabora.mydomain.com {
	encode gzip
	@collabora {
		path /loleaflet/* # Loleaflet is the client part of LibreOffice Online
		path /hosting/discovery # WOPI discovery URL
		path /hosting/capabilities # Show capabilities as json
		path /lool/* # Main websocket, uploads/downloads, presentations
	}
	reverse_proxy @collabora http://192.168.5.89:9980

I read somewhere that there were changes to the latest version of NC23 that change loleaflet to browser and lool to cool. So I change my Caddyfile to

collabora.mydomain.com {
	encode gzip
	@collabora {
		#	path /loleaflet/* # Loleaflet is the client part of LibreOffice Online
		path /browser/* # Browser is the client part of LibreOffice Online
		path /hosting/discovery # WOPI discovery URL
		path /hosting/capabilities # Show capabilities as json
		path /cool/* # Main websocket, uploads/downloads, presentations
	}
	reverse_proxy @collabora http://192.168.5.89:9980
}

http://192.168.5.89:9980/ returns an ok

  1. Entering https://collabora.mydomain.com/hosting/discovery in a browser does output the contents of an xml file.
  2. I can access the admin console at https://collabora.mydomain.com/browser/dist/admin/admin.html.
  3. Entering https://collabora.mydomain.com/hosting/capabilities in a browser does return text similar to that shown below:
{"convert-to":{"available":false},"hasMobileSupport":true,"hasTemplateSaveAs":false,"hasTemplateSource":true,"productName":"Collabora Online Development Edition"}

The office online app is installed and had https://collabora.mydomain.com saved with a green check.

When I go to open a document I get
Collabora loading

If I go to create a new document with the + sign I don’t see the icons in front of the document types.

Any help would be greatly appreciated. Thanks.

Hey I’m really sorry I can’t help since I’m using traefik as my rv proxy rather than caddy, however are you sure you need those path statements for caddy? Where did you pull this information from. I didn’t have to do any of this for traefik.

deleted the docker container and then reinstalled and everything works with the update Caddyfile. Got the info from here. Not familar with traefik. Have also tried to use HAProxy on my PFSense but I get a headache trying to figure it out . So for now I’m using the caddy reverse proxy.

I’m glad you got it working. Containers should be like cattle, never fear throwing them away and rebuilding the container.

Good ole Basil wrote the documentation you referenced. He’s really good with Caddy – I remember him when he was getting up and running and asking a bunch of questions about how to use Caddy – how time flies.