Trying to use nextcloud with the collabora app hosted on the same server. The server itself is behind a nethsec, I configured a reverse proxy which works (I can log into collabora’s admin interface).
I guess there is some socket issue ?
Relevant logs :
browser console : WebSocket connection to 'wss://collabora.lebrass.be/cool/https%3A%2F%2Fdrive.lebrass.be%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F4533723_ocmnms1625ia%3Faccess_token%3DnTprN8XI7k4Qukd7r3tuNTGgeEAC8pVL%26access_token_ttl%3D0/ws?WOPISrc=https%3A%2F%2Fdrive.lebrass.be%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F4533723_ocmnms1625ia&compat=/ws' failed: There was a bad response from the server.
Traefik log on the server (which is a worker node btw) :
Tried to set the FQDN as 10.5.4.2 in /etc/hosts. Must be another inter-container story
The collabora container is on the same machine. I could move it to another worker which is not behind a gateway but I believe that it should be a supported scenario.
Usually a reverse proxy like the nethsec nginx should work.
Please check the proxy destination URLs on the NethSec, some may work using https, other may need http.
altcloud can only work if the nextcloud FQDN is also set to altcloud.
Does it make a difference when you connect from WAN or LAN?
Does your node has the same FQDN as Nextcloud?
EDIT:
I tested it and it works.
On the NethSec are certificates and reverse proxies for following FQDNs.
All are pointing to https://192.168.0.10 which is the NS8 IP. If you have more nodes it needs to point to the right node where the app is installed.
If the node has some internal name like node.internaldomain.local it doesn’t matter but the app FQDNs need to be set correctly in the app settings on NS8. The external clients get to the NethSec anyway.
DNS must resolve the FQDNs. If you want to setup internal DNS entries for those FQDNs then they need to point to the NethSec so the clients get the valid certificate.