I recently had the “document could not be saved” issue on onlyoffice, so i got advices to swap http to https here at “server address for internal requests from the Document Editing Service.” :
It solved but now since i started up the server again, i cant access to nextcloud with internal ip and external…
I get this error from internal :
192.168.1.19 (that is my local adress of nextcloud) uses an invalid security certificate.
If you are using HTTPS you need to access your server via your domain name. That is because your SSL certificate (for HTTPS) is created for your domain name, consequently contains that domain name and is only accepted when the address you’re accessing contains that name.
Can you check the outcome when you use your domain name for accessing the server?
If you want to avoid a connection to your server through the internet, you can add your server’s domain to your hosts file. On Windows it is: C:\Windows\System32\drivers\etc\hosts
You could enter the following (please replace your.domain.tld with your actual full qualified domain name): 192.168.1.19 your.domain.tld
Your computer will then resolve the domain name to the local IP and directly connect to your server.
If that doesn’t help so far, please post your nginx config.
Yes, I’m sure You avoid the “loop” (actually rather an unnecessary detour through the internet) by editing your hosts file as suggested above.
Your server is not reachable from the Internet?
Does Nextcloud work on its own with HTTPS enabled? Does Onlyoffice work with HTTPS on its own?
This is from your HTTPS part of your config and it forwards the traffic to onlyoffice. I believe it should read:
proxy_pass https://onlyoffice-document-server;
Well since i changed the http://nginx-server/ to https://nginx-server/ It worked perfectly i had https working on both nextcloud and onlyoffice in local and from public IP then i decided to reboot.
And now nextcloud is not reachable by local network and public IP address
Where the docker images started with parameter --restart always?
Or asking the other way round, are the docker images running, after the reboot?
Could you please check with: docker ps
It is very strange that everything works fine and only by a reboot something is broken. It’s more likely that the reason for this can be found in system updates.
If you use your server in LAN only you could undo all changes that enabled HTTPS. Apart from that it is not suggested to run with HTTP only. One time set up correctly HTTPS is pretty simple.