Closed piiskop closed 11 months ago
Hello @piiskop, sorry for the late reply. To get certificates from letsencrypt using variables in docker you will have to use 80 and 443 ports, because letsencrypt uses these ports. Duplicate of #347
I close this issue. Feel free to comment or reopen it if you got further questions.
Do you want to request a feature or report a bug? bug
What is the current behavior? Too many redirects.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. I installed the document server this way:
sudo docker run -i -t -d -p 112:80 -p 446: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/db:/var/lib/postgresql -e LETS_ENCRYPT_DOMAIN=documentserver.onlyoffice.ons.ee -e LETS_ENCRYPT_MAIL=kalmer@ons.ee -e JWT_SECRET=my_jwt_secret onlyoffice/documentserver
The configuration file for nginx has the following content:
It worked for a day but after restarting the machine, it does not work anymore. Removing the container and reinstalling the image did not make a difference. If I access https://documentserver.onlyoffice.ons.ee/ then I get:
What is the expected behavior?
The document server works.
Did this work in previous versions of DocumentServer?
Irrelevant.
DocumentServer Docker tag:
REPOSITORY TAG IMAGE ID CREATED SIZE onlyoffice/documentserver latest 2e2042083288 5 weeks ago 3.05GB
blissful_buck
Host Operating System:
Ubuntu 22.04.3 LTS