Nextcloud Docker app having broken config



Short description of the issue:

  1. Nextcloud 12.0.3-0 has been installed via UCS Apps
  2. Custom proxying made with external domain
  3. On first login Nextcloud blame that we need to add external domain as trusted
  4. It is working

Today we have updated Nextcloud to 12.0.5-0 and immediately found that:

  1. Altered config.php in directory /var/lib/univention-appcenter/apps/nextcloud/conf/config/ has been overwritten
  2. The Nextcloud still blaming that external domain not trusted

After review we have found that there is an issue - Nextcloud (docker based) itself located in /var/www/html so its actual config is in /var/www/html/config/config.php

The UCS default binds do config and data mappings from/to /var/lib/univention-appcenter/apps/nextcloud/conf and /var/lib/univention-appcenter/apps/nextcloud/data while first should be /var/lib/univention-appcenter/apps/nextcloud/conf/config to /var/www/html/config

Looks to be like a bug?


The trusted domains are reset on update (to reflect possible changes on the host) and custom entries are lost:

Custom entries should be kept, obviously, so this is a bug. I guess we should just do this once on install, and let any further changes be business of the admin. Too error prone. I opened a bug: