Nextcloud Trusted Domain

NethServer Version: 7.8.2003
Module: Nextcloud - 19

Hello @support_team,

I’ve updated my Nethserver this morning to the latest of whatever was available. Upon upgrade my Nextcloud has the message “Access through untrusted domain”. I’ve seen this before whenever Nextcloud is upgraded. I know that I need to access my cd /usr/share/nextcloud/config/config.php file and update my trusted domain section. When I first login I see the following:

‘trusted_domains’ =>
array (
0 => ‘localhost’,
1 => ‘mynethserver.mycompany.local’,
2 => ‘10.101.1.10’,

I need to add in my domain site and add in a third option:

array (
0 => ‘localhost’,
1 => ‘mynethserver.mycompany.local’,
2 => ‘10.101.1.10’,
3 => ‘mycloud.mycomany.com’,

So that I may access my site using Nextcloud using mycloud.mycompany.com.

My question is about within Nethserver and Nextcloud Application > Configuration, I see a box for “Trusted domains (one per line)”. How do I use this? Do I add in the missing ‘mycloud.mycompany.com’ in this box or do I add in all 4 lines from above into this box?

Thank you.

0 and 1 are set automatically by NethServer. So you shall put the other entries in “Trusted domains (one per line)” box.

3 Likes

Hello @dnutan and thank you for this reply!

Nice to be able to quickly update from the Nethserver menu my trusted domains.

One correction that I noticed for my installation is that I only needed to add

mycloud.mycomany.com

The IP address is also automatically added to my trusted domains so if I add it to the Nethserver box it shows up twice when I look at config.php.

Thanks!