Nextcloud trusted_domains issue (solved)

nextcloud

#1

Hello,

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 XYZ.ddns.net/univention/portal/ without problem, but that’s as far as i go.

Here’s the array by the way:

'trusted_domains' => 
  array (
    0 => 'ucs-xxxx','XYZ.ddns.net'
    1 => '192.168.1.13',
  ),

Any idea ?

Thanks for your help.


#2

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

#3

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

array (
    0 => 'ucs-xxxx',
    1 => '192.168.1.13',
    2 => 'XYZ.ddns.net',
  ),

#4

Thank you so much for your answers.

Both recommendations solved my issues !

Best regards,

Fabrice