NextCloud : nginx config throws errors, Collabora Office doesn't work #121

Closed
opened 2026-04-05 20:25:31 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @papypom on 3/6/2025

CloudPanel version(s) affected

2.5.1 - Debian 12 Bookworm

Description

I'm using Nextcloud with Cloudpanel, using the preconfigured VHOST. I had to make somes changes to add the support for mjs & wasm file type, and to access properly /ocm-provider/. Also NextCloud Office throws erros, see screenshots.

Image

Image

How to reproduce

Using the PHP/Nextcloud preset, install nextcloud from zip file (https://download.nextcloud.com/server/releases/latest.zip) and go Administration/Overview and Administration/Nextcloud Office tab to have a list of issues.

Also the Administration/Logging and Administration/Activity don't work out of the box.

Possible Solution

Modify VHOST for Nextcloud, it should at least have the following added to it :

Set .mjs and .wasm MIME types
  include mime.types;
  types {
    text/javascript mjs;
    application/wasm wasm;
  }

and the following lines have to be changed as such :

location ~ \.(?:css|js|woff2?|svg|gif|map|otf)$ {
location ~ \.(?:css|js|mjs|woff2?|svg|gif|wasm|map|otf)$ {

location ~ ^\/(?:updater|oc[ms]-provider)(?:$|\/) {
location ~ ^\/(?:updater|ocs-provider)(?:$|\/) {

I haven't been able to figure out the Nextcloud Office issue, though. Collabora has a howto (https://www.collaboraonline.com/blog/connecting-collabora-online-built-in-code-server-with-nginx/), but following it doesn't solve the issue. I finally installed a separate instance of Collabora.

Additional Context

Using an ARM64 server from Hetzner, so had to replace the Collabora plugin by the ARM64 CODE plugin.

*Originally created by @papypom on 3/6/2025* ### CloudPanel version(s) affected 2.5.1 - Debian 12 Bookworm ### Description I'm using Nextcloud with Cloudpanel, using the preconfigured VHOST. I had to make somes changes to add the support for mjs & wasm file type, and to access properly /ocm-provider/. Also NextCloud Office throws erros, see screenshots. ![Image](https://github.com/user-attachments/assets/e87c0f27-5287-48d0-8843-7d6a6d999026) ![Image](https://github.com/user-attachments/assets/ba853923-12ac-48f6-9989-88f47a47f9ff) ### How to reproduce Using the PHP/Nextcloud preset, install nextcloud from zip file (https://download.nextcloud.com/server/releases/latest.zip) and go Administration/Overview and Administration/Nextcloud Office tab to have a list of issues. Also the Administration/Logging and Administration/Activity don't work out of the box. ### Possible Solution Modify VHOST for Nextcloud, it should at least have the following added to it : ``` Set .mjs and .wasm MIME types include mime.types; types { text/javascript mjs; application/wasm wasm; } ``` and the following lines have to be changed as such : ``` location ~ \.(?:css|js|woff2?|svg|gif|map|otf)$ { location ~ \.(?:css|js|mjs|woff2?|svg|gif|wasm|map|otf)$ { location ~ ^\/(?:updater|oc[ms]-provider)(?:$|\/) { location ~ ^\/(?:updater|ocs-provider)(?:$|\/) { ``` I haven't been able to figure out the Nextcloud Office issue, though. Collabora has a howto (https://www.collaboraonline.com/blog/connecting-collabora-online-built-in-code-server-with-nginx/), but following it doesn't solve the issue. I finally installed a separate instance of Collabora. ### Additional Context Using an ARM64 server from Hetzner, so had to replace the Collabora plugin by the ARM64 CODE plugin.
Sign in to join this conversation.