I try using the included CODE development server, as well as the docker container. The result is always the same: I open a .docx file in the web interface (like Welcome to Nextcloud.docx), the main part of the screen goes white and nothing else happens. Also, the logs (container output) gives nothing useful.
The same happens, when I set up nextcloud to use my own Collabora sever with the URL http://nc.domain.tld:9980 with disabled certificate checking.
In any case, the settings say that the server is reachable.
Thanks. I got mine working, yay! After a bunch of trial and error I learned I needed to customize the file /etc/loolwsd/loolwsd.xml directly, following Unauthorized WOPI Host with Nextcloud 16 on custom port . Iβm running Nextcloud from the official Docker image behind a Traefik reverse proxy.
This is the error I was seeing:
wsd-00007-00042 2020-08-11 18:28:49.866509 [ docbroker_001 ] ERR No acceptable WOPI hosts found matching the target host [cloud.example.com] in config.| wsd/Storage.cpp:282
For those who are looking for a simpler way with Docker and Traefik as a reverse proxy :
You can use the domain environment variable and set it to your nextcloud domain.
Docker-compose :
collabora:
image: collabora/code
container_name: nextcloud_collabora
ports:
- "9980:9980"
depends_on:
- nextcloud
cap_add:
- MKNOD
environment:
- username=admin #This is used to access collabora admin panel : https://www.subdomain.domain.tld/loleaflet/dist/admin/admin.html
- password=MyCollaboraAdminPassword
# Domain the service should be accessed from:
- domain=domain\\.tld
- dictionaries=en fr
# SSL terminates at the proxy (https://www.collaboraoffice.com/code/nginx-reverse-proxy/)
- extra_params=--o:ssl.enable=false --o:ssl.termination=true
labels:
- traefik.enable=true
- traefik.http.routers.collabora.entrypoints=https
- traefik.http.routers.collabora.rule=Host(`collabora.domain.tld`)
- traefik.http.routers.collabora.tls.certresolver=letsencrypt
networks:
- traefik_net
- cloud_net