Cells behind reverse proxy, collabora is apparently trying to connect wss to local address

Hi Folks,
I have a new install of cells which is working fine behind an nginx reverse proxy on my server cells.robinbussell.co.uk.

The local address that cells is bound to on the server is

However I’m now trying to get collabora going and in the browser console I can see that it is trying to connect to wss:// which, unsurprisingly, is timing out.

browser console log extract:
WebSocket connection to ‘wss://’ failed: Error in connection establishment: net::ERR_CONNECTION_TIMED_OUT

loolwsd is also being reverse proxied by nginx and is listening on with plugin settings set to use localhost: 9999

server {
   listen 9999 ssl;
   ssl_certificate     /etc/letsencrypt/live/cells.robinbussell.co.uk/fullchain.pem;
   ssl_certificate_key /etc/letsencrypt/live/cells.robinbussell.co.uk/privkey.pem;
   ssl_protocols       TLSv1 TLSv1.1 TLSv1.2;
   ssl_ciphers         ALL:HIGH:!aNULL:!MD5;

   location ^~ /loleaflet {
      proxy_set_header Host $http_host;
   error_log /var/log/nginx/CODE-proxy-error.log;
   access_log /var/log/nginx/CODE-proxy-access.log; 


Any ideas as to what’s up?


Hello and welcome @Zedsquared,

I’m not very familiar with nginx, but it could be that you need to also reverse proxy the websocket,
you might have an idea on what it looks like on the apache2 documentation.

it looks like this on apache:

# Collabora Online
  # ProxyPassMatch "/lool/(.*)ws$" wss://*1/ws nocanon

But why would the client be trying to connect to Surely it should be trying to connect to the public IP of the server, which would then proxy the websocket.

This looks more like the websocket connection code issued from cells doesn’t follow the external IP setting properly.


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