Nextcloud trusted_domains issue (solved)


I’m still getiing the dreaded "You are accessing the server from an untrusted domain.” message. eventhough i added my own ddns redirector manually to the trusted_domains array in /var/lib/univention-appcenter/apps/nexcloud/conf/config/config.php

I’m reaching without problem, but that’s as far as i go.

Here’s the array by the way:

'trusted_domains' => 
  array (
    0 => 'ucs-xxxx',''
    1 => '',

Any idea ?

Thanks for your help.

1 Like

We had the same problem. Seems like /var/lib/univention-appcenter/apps/nexcloud/conf/config/config.php is not the file Nextcloud uses. After editing we just copied this file to the correct location using the commands below:

univention-app shell nextcloud
cp /var/lib/univention-appcenter/apps/nextcloud/conf/config/config.php /var/www/html/config/config.php
1 Like

What @Andreas_T says. Plus, your format is wrong, would probably end up in a non-working instance.

array (
    0 => 'ucs-xxxx',
    1 => '',
    2 => '',

Thank you so much for your answers.

Both recommendations solved my issues !

Best regards,


see also: