Support relative URL for Document Editing Service address
On home networks, stable DNS and IP addresses are a problem :-)
Depending on the time of day, the phase of the moon, and whatever else, a given Nextcloud installation may be accessed by the user at URLs as varied as:
http://192.168.1.2http://192.168.1.222http://nextcloud.localhttp://nextcloud.ihaveadnsserveryay.com
To use the document server, a setting for Document Editing Service address has to be given, such as: http://192.168.1.2/apps/documentserver_community/.
Unfortunately, the document editor will only come up if Nextcloud was accessed with a compatible URL: http://192.168.1.2 from the example. If another one is used (e.g. http://nextcloud.local, or the IP address changed from one day to the next, we only get error message "ONLYOFFICE cannot be reached. Please contact admin".
So. I don't know how hard or easy this is, but it would be nice if the Document Editing Service address could be given as a relative URL, which is relative to the Nextcloud installation URL, such as apps/documentserver_community/. (Ideally also relative to the root context URL of the Nextcloud install, so subdirectories are possible.) And this app would, at run-time, resolve the relative URL into an absolute one.
This would allow the setting of the parameter once, and it would continue to work even if IP addresses and/or hostnames changed.
This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 60 days. Thank you for your contribution!
Retaking repo management include inheritance of old, not treated, and probablty obsolete issues, this is why it was decided to mark issues as stale.
Well, three likes, four years, no progress. :-(
Well this is more a network issue, in an https context, you must always use the same url to match the certificates information. You whether should temporarly change your hosts file or set an override in your DNS resolver. This shouldn't be reported here anyway, it should be reported to Onlyoffice app (https://apps.nextcloud.com/apps/onlyoffice) but they'll probably give you a similar answer.
I suggest you to set up IPv6 connectivity that will definitely fix your problem (as it's tried before IPv4)