WOPI understanding

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    31.0.9
  • Operating system and version (e.g., Ubuntu 24.04):
    Linux 6.1.0-41-amd64 x86_64 (Debian 12, bookworm)
  • Web server and version (e.g, Apache 2.4.25):
    PostgreSQL 15.14
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    nginx/1.28.0 (twice ie one is the main gatekeeping for other elements/sites/tools, and pass the info, the other one which is the nextcloud one with all the fastgci, location, etc… parameters)
  • PHP version (e.g, 8.3):
    8.3.25
  • Is this the first time you’ve seen this error? (Yes / No):
    Collabora Online server is reachable, trying to understand WOPI
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    docker (in a VM, on proxmox)
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    using Cloudflare

The challenge

So here is roughtly my setup :

Public IP : 90.100.x.x → nginx-main (machine 1 LAN ip 192.168.a.x) → nginx + nextcloud (machine 2 LAN ip 192.168.a.y)

I read many topics and post, all very well documented and yet, I have a hard time putting my head around : which IP do I need to add in the WOPI section ?

External public IP 90.100.x.x ?
The nginx-main IP ? 192.168.a.x
The nginx-nextcloud IP ? 192.168.a.y
The nextloud-docker IP(s) ? 172.10.x.x (I don’t have collabora as a separate container, I’m using the built in CODE)

It seems to me it should be either the nginx-nextcloud IP or the nextloud-docker IP but I’m really not sure. Would that be enough for external users to be able to open docs (ie users not on my LAN obviously) ?

Network is definitly not my strongest suit, so any support on clarifying what goes where would be appreciated.

Collabora communicates with your Nextcloud via HTTP(S). This means you must whitelist the IP address that Collabora uses to access your Nextcloud. You can also check the access log of your Nextcloud to see Collabora’s IP address. Search for richdocuments/wopi.