Onlyoffice on different port possible?

Issues during installation and related to database
Post Reply
ArgqWow
Posts: 1
Joined: Tue Mar 05, 2019 3:54 am

Onlyoffice on different port possible?

Post by ArgqWow » Tue Mar 05, 2019 4:21 am

Hello,
I have to install onlyoffice with nextcloud on a different port than 443 because tis port is already in use. I have an working Nextcloud installation.

Nextcloud can be reached by https://office.mydomain.de:8443/nextcloud

I have installed onlyoffice via docker. I can reach the config page by ma local network with 192.168.1.8:4433. Also I can reache it by onlyoffice.mydomain.de:8443/welcome. When I try to do onlyoffice.mydomaine.de:8443 (without welcome) it takes me to onlyoffice.mydomaine.de/welcome (the port is missing) and I get an error.

This is my nginx for the onlyoffice:


Code: Select all

server {
        listen 443 ssl http2;
        server_name onlyoffice.mydomaine.de;

        # Include SSL configuration
        include /etc/nginx/snippets/ssl.conf;

        #
        # Configuration for OnlyOffice
        #
        location / {
                proxy_pass https://192.168.1.8:4433;
                proxy_redirect off;
                proxy_set_header Host $http_host;
                proxy_set_header X-Real-IP $remote_addr;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_set_header X-Forwarded-Host $server_name;
                proxy_set_header X-Forwarded-Proto $scheme;
        }
}
This is my run-command:

Code: Select all

docker run --name=ONLYOFFICEDOCKER -i -t -d -p 4433:443 -e JWT_ENABLED='true' -e JWT_SECRET='geheimes-secret' --restart=always -v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data onlyoffice/documentserver

I have set the setting in nextcloud for document server to https://onlyoffice.mydomain.de:8443 and when I press save I got an error:

Fehler beim Anschließen (Im Dokumentenservice ist ein Fehler aufgetreten: Error while downloading the document file to be converted.)

If it will be possible to run onlyoffce on a seperate port?
Please, can anyone assist me? I spent hours on this issues without any luck.

Thank alot
Andreas

Maxim
Posts: 1951
Joined: Tue Oct 11, 2016 2:34 pm

Re: Onlyoffice on different port possible?

Post by Maxim » Wed Mar 06, 2019 7:36 am

Hello ArgqWow!
If it will be possible to run onlyoffce on a seperate port?
By default Document Server listens to the incoming connections using port 80. Starting with version 4.3 you can change the port for Document Server if you plan to use it instead of the default one.
This can be easily done changing the mapping port during the installation:

Code: Select all

sudo docker run -i -t -d -p <PORT_NUMBER>:80 --restart=always onlyoffice/documentserver
Where

Code: Select all

<PORT_NUMBER>
is the number of port you want Document Server to use.
I think changing 443 port as a default port for HTTPS is not good idea. Is 443 port already busy with SSL certs?

Post Reply