I have a Docker version of Onlyoffice installed.
Then I created a subdomain and specified that container from the "Docker proxy rule" for that subdomain. It specifies port 80->380. If I select 443->4443 for the port there, I cannot connect to Onlycloud.
And I can use Onlyoffice using Nextcloud. However, when I look at the browser log, I always get an error that I can't establish a wss connection.
Firefox:
> Could not establish a connection to the server at wss://ONLYOFFICE.MYDOMAIN/5.4.1-39//doc/---/websocket.
Vivaldi:
> WebSocket connection to 'wss://ONLYOFFICE.MYDOMAIN/5.4.1-39//doc/---/websocket' failed: Error during WebSocket handshake: Unexpected response code: 400
I'm worried that when I try to access Onlyoffice via https(Port 4443), the connection is refused. I suspect that this is causing wss connection errors.
When I look at the installation guide using Docker, there is only one port specification in the docker run command. To use manual ports with Plesk Docker, I must set two port ranges.
I'm using SSL with a wildcard specification for the domain by Let's encrypt. It's complicated, but SSL is essential to use Onlyoffice with Nextcloud. Nextcloud is in a separate subdomain. In Nextcloud, I can use Onlyoffice by specifying https://onlyoffice.MYDOMAIN.
How can I resolve this error?
---
CentOS 7.7, Docker 19.03.4, PHP 7.3.11, Plesk Onyx 17.8.11
Code:
sudo docker run -i -t -d -p 380:80 -p 4443:443 --restart=always \
-v /app/onlyoffice/DocumentServer/logs:/var/log/onlyoffice \
-v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data \
-v /app/onlyoffice/DocumentServer/lib:/var/lib/onlyoffice \
-v /app/onlyoffice/DocumentServer/fonts:/usr/share/fonts \
-v /app/onlyoffice/DocumentServer/db:/var/lib/postgresql onlyoffice/documentserver /bin/bash
Then I created a subdomain and specified that container from the "Docker proxy rule" for that subdomain. It specifies port 80->380. If I select 443->4443 for the port there, I cannot connect to Onlycloud.
And I can use Onlyoffice using Nextcloud. However, when I look at the browser log, I always get an error that I can't establish a wss connection.
Firefox:
> Could not establish a connection to the server at wss://ONLYOFFICE.MYDOMAIN/5.4.1-39//doc/---/websocket.
Vivaldi:
> WebSocket connection to 'wss://ONLYOFFICE.MYDOMAIN/5.4.1-39//doc/---/websocket' failed: Error during WebSocket handshake: Unexpected response code: 400
I'm worried that when I try to access Onlyoffice via https(Port 4443), the connection is refused. I suspect that this is causing wss connection errors.
When I look at the installation guide using Docker, there is only one port specification in the docker run command. To use manual ports with Plesk Docker, I must set two port ranges.
I'm using SSL with a wildcard specification for the domain by Let's encrypt. It's complicated, but SSL is essential to use Onlyoffice with Nextcloud. Nextcloud is in a separate subdomain. In Nextcloud, I can use Onlyoffice by specifying https://onlyoffice.MYDOMAIN.
How can I resolve this error?
---
CentOS 7.7, Docker 19.03.4, PHP 7.3.11, Plesk Onyx 17.8.11
Last edited: