ONLYOFFICE / Docker-DocumentServer

ONLYOFFICE Document Server is an online office suite comprising viewers and editors for texts, spreadsheets and presentations, fully compatible with Office Open XML formats: .docx, .xlsx, .pptx and enabling collaborative editing in real time.
GNU Affero General Public License v3.0
1.38k stars 475 forks source link

Why can't a domain name be used with onlyoffice? #677

Closed a506488043 closed 8 months ago

a506488043 commented 10 months ago

Do you want to request a feature or report a bug?

Why can't a domain name be used with onlyoffice? Directly using public IP and local IP can edit documents normally? Why does a domain name call onlyOffice's wopi and it won't work? Onlyoffice is deployed using dockers image image image

Is it a problem with where to set it up? docker run -i -t -d -p 9980:80 --restart=always \ -v /mnt/256G/docker/onlyoffice/logs:/var/log/onlyoffice \ -v /mnt/256G/docker/onlyoffice/data:/var/www/onlyoffice/Data \ -v /mnt/256G/docker/onlyoffice/lib:/var/lib/onlyoffice \ -v /mnt/256G/docker/onlyoffice/db:/var/lib/postgresql \ -v /mnt/256G/docker/onlyoffice/DocumentServer/rabbitmq:/var/lib/rabbitmq \ -e WOPI_ENABLED=true \ -e ONLYOFFICE_HTTPS_HSTS_ENABLED=true \ -e REDIS_SERVER_HOST=127.0.0.1 \ -e REDIS_SERVER_PORT=6739 \ -e REDIS_SERVER_PASS=YCw6Hh \ -e LETS_ENCRYPT_DOMAIN=cloud.saiita.cn \ --name onlyoffice --restart="always" onlyoffice/documentserver

What is the current behavior?

Onlyoffice has set up a public domain name and configured it. The public network service calls onlyoffice and does not work. And the public IP calls onlyoffice, which can work normally.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.

What is the expected behavior?

The domain name of the public network service can call the Wopi of onlyOffice normally

Did this work in previous versions of DocumentServer?

First deployment

DocumentServer Docker tag:

Host Operating System: Linux ITX 6.2.0-36-generic #37~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct 9 15:34:04 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

igwyd commented 10 months ago

Hello @a506488043, i guess it may error with your DNS server, provide please onlyoffice-documentserver logs.

igwyd commented 8 months ago

I close this issue. Feel free to comment or reopen it if you got further questions.