Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nextcloud to onlyoffice refused to connect. #532

Open
Rhazzaz0r opened this issue Oct 28, 2022 · 8 comments
Open

nextcloud to onlyoffice refused to connect. #532

Rhazzaz0r opened this issue Oct 28, 2022 · 8 comments
Assignees

Comments

@Rhazzaz0r
Copy link

Rhazzaz0r commented Oct 28, 2022

Hallo, I need help with a problem related to onlyoffice-document-server

I have a Traefik revers-proxy up and running.
Traefik gets the certificats from "Lets Encrypt"

behind that revers-proxy I have a nextcloud running and also
a onlyoffice-document-server.

everything works fine but when I try to open a document I get:
'my onlyoffice domain' refused to connect.

  • I checked ds:example: started works
  • I tryed curl from the nextcloud container to onlyoffice-document-server container and vice versa. works
  • I added the docker-container names to nextcloud configs trusted domains.
  • I added 'verify_peer_off' => TRUE, to nextcloud config
  • I checked all logfiles nothing out of the ordinary

does sonmeone else had that issue and fixed it?
Can someone help me please?

@vawaver
Copy link

vawaver commented Oct 29, 2022

Hi,
I posted my problem which is similar to yours in Discussions.
Still waiting for a response.
URL - #534

@Rhazzaz0r
Copy link
Author

Is there any update? Can someone help please?

@hmt
Copy link

hmt commented Feb 3, 2023

Have you set the Secret? You will probably need to add the token from local.json which you find inside the container under : /etc/onlyoffice/documentserver-example/local.json

@vawaver
Copy link

vawaver commented Feb 3, 2023

Have you set the Secret? You will probably need to add the token from local.json which you find inside the container under : /etc/onlyoffice/documentserver-example/local.json

Can you be moreprecise and give a short instruction of what needs to be done?
I'm not an IT pro, but I could handle it if I knew exactly what to do.

@hmt
Copy link

hmt commented Feb 3, 2023

There is a simpler solution: When you start your container like this here:

sudo docker run -i -t -d -p 80:80 onlyoffice/documentserver

Your setup will probably look a bit different, maybe you want to add volumes etc. But the point is, add an env var for a secure token like this:

sudo docker run -i -t -d -p 80:80 -e JWT_SECRET=somesupersecretstring onlyoffice/documentserver

This token needs to be added to your NextCloud settings. Go to settings/admin/onlyoffice -> Secret key

@vawaver
Copy link

vawaver commented Feb 5, 2023

@hmt > This token needs to be added to your NextCloud settings. Go to settings/admin/onlyoffice -> Secret key

I am stuck on settings on how to connect Nextcloud snap to this only Onlyoffice docker. Both are alongside on the same Linux server but I am not able to open/edit any document.
Can you recommend some tutorials on how to set it up? Both are behind Nginx proxy server. I do not know if it needs some advanced settings or not.

@hmt
Copy link

hmt commented Feb 6, 2023

I have Apache and set up on two different servers. Sorry, can't really help you with that. There are some gists floating around if you search on Github.

@talesam
Copy link

talesam commented Mar 31, 2023

JWT_SECRET=somesupersecretstring

I used version 7.1.1 and didn't need a token, what I did was, I updated it, and I uploaded my docker-composer like this:

version: '3.9'

services:
  onlyoffice:
    container_name: onlyoffice
    image: onlyoffice/documentserver:latest
    restart: always
    environment:
      JWT_SECRET: PASSWD
    volumes:
      - /home/tales/Docker/OnlyOffice/data:/var/www/onlyoffice/Data:rw
      - /home/tales/Docker/OnlyOffice/logs:/var/log/onlyoffice
      - /home/tales/Docker/OnlyOffice/fonts/truetype/custom:/usr/share/fonts/truetype/custom
      - /home/tales/Docker/OnlyOffice/plugins:/var/www/onlyoffice/documentserver/sdkjs-plugins
    expose:
      - 80
      - 443
    networks:
      t4l35-net:

networks:
  t4l35-net:
    name: t4l35-net
    ```
    But it does not connect to nextcloud

@igwyd igwyd removed their assignment Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants