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

Reverse proxy problem with non-standard ports in onlyoffice. #686

Closed
7980963 opened this issue Nov 28, 2023 · 1 comment
Closed

Reverse proxy problem with non-standard ports in onlyoffice. #686

7980963 opened this issue Nov 28, 2023 · 1 comment
Labels
duplicate Issues that are duplicates of other issues

Comments

@7980963
Copy link

7980963 commented Nov 28, 2023

Do you want to request a feature or report a bug?
bug
What is the current behavior?
Error when trying to connect (cURL error 35: OpenSSL/3.1.4: error:0A000438:SSL routines::tlsv1 alert internal error (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://onlyoffice.doger.cc/healthcheck)
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
Hello, I want to use OnlyOffice for NextCloud, I deployed it in my home network with a dynamic public IP but not open port 80 443, so I used port 7980 instead of 80 and 9780 instead of 443, I used Docker for the installation, the installation command is as follows:
sudo docker run -i -t -d -p 9003:80 -p 9004: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/setting:/etc/onlyoffice \\ -v /app/onlyoffice/DocumentServer/db:/var/lib/postgresql -e JWT_SECRET=xxxxxxxxxxxxxx onlyoffice/documentserver
As shown in the command, I mapped port 80 443 within Docker to port 9003 9004 of the server respectively, I deployed OpenResty on the same server, and used a reverse proxy to proxy port 9003 to ports 7980 and 9780, and because NextCloud requires HTTPS, I also 301ed 7980 to 9780 and resolved to xx.com, then when I visited https://xx.com:9780/时, it should go to https://xx.com:9780/welcome/ , but it actually went to https://xx.com/welcome/, manually visit https://xx .com:9780/welcome/ can be opened normally.
Fill https://xx.com:9780/ into ONLYOFFICE Docs address, and check Disable certificate verification (insecure), it will prompt: Error when trying to connect (cURL error) 35: OpenSSL/3.1.4: error:0A000438:SSL routines::tlsv1 alert internal error (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://onlyoffice.doger.cc/healthcheck).
Put https://192.168.4.3:9004/ in to the ONLYOFFICE Docs address and check Disable certificate verification (insecure), it can be used normally, but only for intranet environment.
What is the expected behavior?
can be used
Did this work in previous versions of DocumentServer?
unknown
DocumentServer Docker tag:
7.5.1
Host Operating System:
debian-12.2 x86_64

@igwyd
Copy link
Member

igwyd commented Dec 4, 2023

hello @7980963,
Duplicate of #687

@Rita-Bubnova Rita-Bubnova added the duplicate Issues that are duplicates of other issues label Dec 5, 2023
@Rita-Bubnova Rita-Bubnova closed this as not planned Won't fix, can't repro, duplicate, stale Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Issues that are duplicates of other issues
Projects
None yet
Development

No branches or pull requests

3 participants