Nexcloud Office - Collabora Setup Queries

Hey guys.

I am in the process of attemting to setup the Collabora Built-In Code server for use with Nextcloud Office.

After installing the Collabora Built-In Code server (Installed as an app within Nexcloud), when I configure Nexcloud Office to use the Built-In Code Server, I browsed back to the guide created by @wwe for help.

I noted in the guide that it references checking the two below URL’s function.

  • https://mydomain.tld/apps/richdocumentscode/proxy.php?req=/hosting/capabilities
  • https://mydomain-tld/apps/richdocumentscode/proxy.php?req=/hosting/discovery

When browsing to those URLs (with my specific domain of course), they did not work. However I was able to get both of the URL’s to show content (an xml and pretty print) if I used the following URL’s

  • https://mydomain.tld/custom_apps/richdocumentscode/proxy.php?req=/hosting/capabilities
  • https://mydomain-tld/custom_apps/richdocumentscode/proxy.php?req=/hosting/discovery

Not that in my revised URL it reads “custom_apps”, rather than “apps”

This is because in my instance the “richdocumentscode” app folder resides in a “custom_apps” folder on my server, rather than the “apps” folder.

Would the above difference in location of the richdocumentcode folder cause me issues?

Laslty, I am struggling to understand what I need to do with respect to X_FORWARDED * http headers as per he below

another important learning - built-in CODE does not understand/adopt Nextcloud integrated reverse proxy OVERWRITE * settings. Running collabora-built-in behind a reverseproxy highly depends on reverse proxy X_FORWARDED * http headers - make sure your proxy adds them!

At the moment I am stuck with the setup as I am getting the Curl 28 timeout error, likely because I have not setup the http headers, but I am unsure where I need to place these or how I would go about doing it.

Advice greatly appreciated.

Many thanks,
P

Please review 101: reverse proxy to understand mechanics used by a reverse proxy integration. Note that this only required in case reverse proxy is in place (or similar like cloudflare).

this might be OK as long your system reflect the right CODE URL ind admin settings (https://cloud.mydomain.tld/settings/admin/richdocuments):

BTW is this the same problem discussed in Help with Unauthorised WOPI host. (TrueNas Install + Remote Collabora Server) ? please avoid additional load on volunteer helpers with duplicate posts!