You are not logged in.

#1 2019-04-20 14:55:46

aquilarubra
Member
From: Trieste, Italy
Registered: 2018-11-24
Posts: 87

[SOLVED] Nextcloud+collabora on nginx - indefinite loading icon issue

Hi,
I am trying to set up collabora.  I tried with docker and the Aur package, practically reaching the same point:

-collabora is reachable on my office.* domain (with /hosting/discovery I get xml output)
-nextcloud was giving some issues when launching collabora (mostly because of open_basedir restrictions, now fixed)

Now, nextcloud seems to be launching collabora, but stays in an indefinite loading icon. It cannot complete loading the collabora editor.

The logs are entirely blank, so I cannot understand what's going on. Any idea?

Last edited by aquilarubra (2019-12-18 05:31:43)

Offline

#2 2019-04-21 06:25:10

aquilarubra
Member
From: Trieste, Italy
Registered: 2018-11-24
Posts: 87

Re: [SOLVED] Nextcloud+collabora on nginx - indefinite loading icon issue

I found that there is a javascript error inspecting the webpage:

Content Security Policy: The page’s settings blocked the loading of a resource at http://cloud.mydomain.com/loleaflet/81ea009/loleaflet.html?WOPISrc=https%3A%2F%2Fcloud.mydomain.com%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F14_ocz89ntc67ol&title=About.odt&lang=en&closebutton=1&revisionhistory=1 (“frame-src”).

It seems a configuration issue, but I followed the Arch tutorial. Maybe something changed.

Last edited by aquilarubra (2019-04-21 06:28:18)

Offline

#3 2019-04-21 13:19:33

aquilarubra
Member
From: Trieste, Italy
Registered: 2018-11-24
Posts: 87

Re: [SOLVED] Nextcloud+collabora on nginx - indefinite loading icon issue

I currently found no solution, if collabora is on domain office.mydomain.com and nextcloud is on cloud.mydomain.com.

All the headers directives in nginx such as
add_header Content-Security-Policy "frame-src 'self' data: 'unsafe-inline' 'unsafe-eval' https://cloud.mydomain.com";
had no effect.

Even setting security.csp.enable to false in about:config in Firefox didn't help (the "frame-src" error disappeared but collabora still did not load).

Moving the content of the nginx virtualhost from office.mydomain.com to cloud.mydomain.com solved the issue (i.e. having nextcloud and collabora on the same virtualhost).

Offline

Board footer

Powered by FluxBB