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?
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
Hello,
Linux and NextcloudPi newbie trying to add trusted domain to NCP on Odroid HC2, apologies if some of what I say doesnât make sense.
Iâm using NCP webui, neither NCP wizard nor adding domain manually at nc-trusted-domains under CONFIG have worked for me.
@OliverV does what you advise (sudo nano /var/www/nextcloud/config/config.php) require use of terminal? If so I typed the command in there and returns âDirectory does not existâ.
Any help will be much appreciated!
Yes, it is a terminal command
If you are root already, you do not need sudo
nano /var/www/nextcloud/config/config.php