Nextcloud trusted_domains issue (solved)

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.

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 => '192.168.1.13',
    2 => 'XYZ.ddns.net',
  ),

Thank you so much for your answers.

Both recommendations solved my issues !

Best regards,

Fabrice

see also: https://help.univention.com/t/edit-config-php-for-trust-domain-what-is-the-command-what-is-the-path/10209/2

Mastodon