Using Onlyoffice on Nextcloud Hub behind a Apache Reverse Proxy

Nextcloud version: 18.0.0
Operating system and version : Ubuntu 18.04.4 LTS
Apache or nginx Version: Apache 2.4.29-1
PHP version: 7.2

The issue you are facing:

Hello all,

i’m looking for a while but i can’t find anything solving my problem.
My situation is, that i’m using nextcloud hub on ubuntu in my LAN. In front of nextcloud there is an apache reverse proxy . On the apache i used Letzs encrypt for ssl communication.
And for internal communication i created a self signed certificate on the ubuntu-Server.
The virtual host on the reverse proxy is using following settings to accept the self signed certificate.

SSLProxyVerify none
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
SSLProxyCheckPeerExpire off

Now i’m trying to enable Onlyoffice including the commjunity document server 0.1.5.

The item “document editing service address” in the onlyoffice settings contains the external name from my side:

https://mycloud.myexternaldomain.com/index.php/apps/documentserver_community/

And now here is my problem.
After using the button “Add spreadsheet” i can see “ONLYOFFICE loading…” and a short time later i can see icons and buttons of the spreadsheet and “Loading spreadsheet”.
But a short time later an error appears “Unknwon error”

I enabled the console from my browser and see that there is the url with the internal name (https://mycloud.mydomain.local).

Can anyone tell me why the internal address is used and where should i change this setting?

CSP14312: Die Direktive img-src ‘self’ data: blob: in Content-Security-Policy wurde durch eine Ressource verletzt: https://mycloud.mydomain.local/apps/firstrunwizard/img/apps/groupfolders.svg. Die Ressource wird blockiert.

2CSP14309: Unbekannte Direktive manifest-src in Content-Security-Policy. Die Direktive wird ignoriert.

moment is deprecated: please ship your own, this will be removed in Nextcloud 20
globals.js (64,26)

CSS3121: Die Medienabfrage -ms-viewport ist veraltet.

4moment is deprecated: please ship your own, this will be removed in Nextcloud 20
globals.js (64,26)

CSP14312: Die Direktive connect-src ‘self’ in Content-Security-Policy wurde durch eine Ressource verletzt: https://mycloud.mydomain.local/index.php/apps/documentserver_community/open/3083772533/Editor.bin. Die Ressource wird blockiert.

oc_defaults is deprecated: use OC.theme instead
globals.js (64,26)

2moment is deprecated: please ship your own, this will be removed in Nextcloud 20

Hi joewet,

perhaps you have found the solution by your own, but if not: in the settings tab there is a configuration entry for onlyoffice. In my installation the installer uses the hostname of the nextcloud instance not the name of the reverse proxy. Change this value to the proxy address and it should work.