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

**URL:** https://forum.pydio.com/t/cells-behind-reverse-proxy-collabora-is-apparently-trying-to-connect-wss-to-local-address/3593
**Category:** Pydio Cells
**Created:** [November 17, 2020, 12:00am UTC](https://forum.pydio.com/t/cells-behind-reverse-proxy-collabora-is-apparently-trying-to-connect-wss-to-local-address/3593 "2020-11-17T00:00:07Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Zedsquared](https://avatars.discourse-cdn.com/v4/letter/z/5daacb/32.png) [@Zedsquared](https://forum.pydio.com/u/Zedsquared)
#### Post date: [November 17, 2020, 12:00am UTC](https://forum.pydio.com/t/cells-behind-reverse-proxy-collabora-is-apparently-trying-to-connect-wss-to-local-address/3593/1 "2020-11-17T00:00:07Z")

</div>

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](http://cells.robinbussell.co.uk).

The local address that cells is bound to on the server is 192.168.12.1:8080

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://192.168.12.1:8080 which, unsurprisingly, is timing out.

browser console log extract:  
WebSocket connection to ‘wss://192.168.12.1:8080/lool/https%3A%2F%[2Fcells.robinbussell.co.uk](http://2Fcells.robinbussell.co.uk)%2Fwopi%2Ffiles%2F8078bf3c-b64c-4938-b62e-0a68c19e86b3%3Faccess\_token%3DSayTke-ptcAxWjzlVRQAY25jd0wPPVyN7HYDIBC-7Us.jtQJSCoeaJTAmdkd5bhPdFJERe17D71Eae8ltXd5adM%26access\_token\_ttl%3D0%26permission%3Dedit/ws?WOPISrc=https%3A%2F%[2Fcells.robinbussell.co.uk](http://2Fcells.robinbussell.co.uk)%2Fwopi%2Ffiles%2F8078bf3c-b64c-4938-b62e-0a68c19e86b3&compat=/ws’ failed: Error in connection establishment: net::ERR\_CONNECTION\_TIMED\_OUT

loolwsd is also being reverse proxied by nginx and is listening on 127.0.0.1:9980 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_pass https://127.0.0.1:9980;
      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?

Cheers,  
Robin.

---

<div class="post-metadata">

### Author: ![zayn](https://avatars.discourse-cdn.com/v4/letter/z/a87d85/32.png) [@zayn](https://forum.pydio.com/u/zayn)
#### Post date: [November 24, 2020, 11:43am UTC](https://forum.pydio.com/t/cells-behind-reverse-proxy-collabora-is-apparently-trying-to-connect-wss-to-local-address/3593/2 "2020-11-24T11:43:31Z")

</div>

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.

- [https://pydio.com/en/docs/kb/deployment/running-cells-behind-apache-reverse-proxy](https://pydio.com/en/docs/kb/deployment/running-cells-behind-apache-reverse-proxy)

it looks like this on apache:

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

```

---

<div class="post-metadata">

### Author: ![Zedsquared](https://avatars.discourse-cdn.com/v4/letter/z/5daacb/32.png) [@Zedsquared](https://forum.pydio.com/u/Zedsquared)
#### Post date: [November 25, 2020, 12:16am UTC](https://forum.pydio.com/t/cells-behind-reverse-proxy-collabora-is-apparently-trying-to-connect-wss-to-local-address/3593/3 "2020-11-25T00:16:38Z")

</div>

But why would the client be trying to connect to 192.168.12.1? 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.

Cheers,  
Robin.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex032/uploads/pydio/original/2X/6/61f19fa52ec15fd4250db51aea351adba0e831fd.png) [@system](https://forum.pydio.com/u/system)
#### Post date: [December 30, 2020, 12:16am UTC](https://forum.pydio.com/t/cells-behind-reverse-proxy-collabora-is-apparently-trying-to-connect-wss-to-local-address/3593/4 "2020-12-30T00:16:57Z")

</div>

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