Docker-compose setup pydio + collabora not working [rev proxy]

version: "3.8"
services:
  proxy:
    image: "jc21/nginx-proxy-manager:latest"
    restart: unless-stopped
    ports:
      - "80:80"
      - "81:81"
      - "443:443"
    volumes:
      - ./data:/data
      - ./letsencrypt:/etc/letsencrypt
  cells:
    image: pydio/cells:latest
    restart: unless-stopped
    environment:
      CELLS_SITE_NO_TLS: 1
      CELLS_SITE_BIND: ":80"
      CELLS_SITE_EXTERNAL: "file.somelocal.duckdns.org/"
    expose:
      - "80"
    volumes:
      - ./cellsdir:/var/cells
  mysql:
    image: mysql:8
    restart: unless-stopped
    environment:
      MYSQL_ROOT_PASSWORD: P@ssw0rd
      MYSQL_DATABASE: cells
      MYSQL_USER: pydio
      MYSQL_PASSWORD: P@ssw0rd
    command: [mysqld, --character-set-server=utf8mb4, --collation-server=utf8mb4_unicode_ci]
    volumes:
      - ./mysqldir:/var/lib/mysql
  editor:
    image: collabora/code
    restart: unless-stopped
    environment:
      extra_params: "--o:ssl.enable=false"
      domain: "office.somelocal.duckdns.org"
    expose:
      - "9980"

After setting up two proxies using nginx-proxy-manager, i’ve created a proxy for the cells installation and another one for the collabora, I use the same certificate for both with a wildcard.

file.somelocal.duckdns.org -> points to cells:80
office.somelocal.duckdns.org -> points to editor:9980

both work over TLS. office.somelocal.duckdns.org returns an OK in the browser.

configs for the libreoffice plugin are

However every time I try to open and edit a file an error shows up in the logs, leaving the page blank

latest-cells-1 | 2023-10-30T10:19:43.257Z ERROR pydio.web.libreoffice Error in libreoffice reverse proxy: dial tcp 127.0.0.1:443: connect: connection refused {“error”: “dial tcp 127.0.0.1:443: connect: connection refused”}

In the devtools of the browser I see a 502 bad gateway error.

Looks like the pydio plugin is not correctly setting the host address for the collab instance to tap into.

Any help appreciated.

Actually i’'ve learn that the cells server does reverse proxy with the collabora instance, so I’ve disabled the certificate and the redirection for the collab server with nginx and I’ve just used the internal network compose to address cells to pinpoint to the collab instance without TLS.

now the configs for the plugin are

→ over version 21
→ no tls
→ no tls verify
→ host editor (as docker-compose)
→ port 9980 (as exposed by the container)

I get this error. But at least i got some progress, didn’t I?

I really don’t want to switch to nextcloud so please help me out :smiley:

this is my plugin config in cells:

image

this is my compose now: https://pastebin.com/raw/dPuQLMUY

This is the error: pydio-collab-editor-1 | wsd-00001-00031 2023-09-30 14:43:56.198027 +0000 [ websrv_poll ] WRN Client - server version mismatch, disabling browser cache. Expected: 8fe1f0f; Actual URI path with version hash: /browser/dist/cool.html| wsd/FileServer.cpp:504

If you’re using NGINX, you need to make sure it’s configured correctly (pydio, for reasons unknown, is VERY particular, and collabra actually has it’s own settings too.) Running Cells behind a Nginx reverse proxy | Pydio

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.