How do I set trusted domain via NextCloudpi



I used the nextcloudpi image for the odroid-hc1 from ownyourownbits.

I want to set my trusted domain via ncp-config on commandline or web-interface.

Where is this function located? I did not find this entry.

Is there something arround?


Hi @frazhome & welcome,

Not sure if the first run wizard in ncp-web provides this!?

You can add it manually to the trusted domain’s array:

sudo nano /var/www/nextcloud/config/config.php

Mine looks like this:

‘trusted_domains’ =>
array (
0 => ‘localhost’,
5 => ‘nextcloudpi.local’,
7 => ‘nextcloudpi’,
8 => ‘nextcloudpi.lan’,
1 => ‘192.168.x.xx’,
10 => ‘myncp.domain.tld’,

Or run:

ncc config:system:set trusted_domains 10 --value=“myncp.domain.tld”


Hello @OliverV,

thank a lot for your quick answer. this is very helpfull.

for me it is the question, why it is not possible via ncp-config.

beginners have a lot of trouble with commandlines like this. It is very easy to break a config.php. Think about missing , or duplicate entries.

should I create a issue at github?


sure, please do :wink: