Trusted domains are used by Nextcloud to prevent Host Header Poisoning. You need to specify every domain at which your Nextcloud can be accessed.
This means if you have Nextcloud installed at â192.168.0.29â and also want it to be accessible at âcloud.example.comâ youâd need to modify the trusted_domains entry in your config/config.php. The initial config would look like the following:
If you use an environment where your IP address can change multiple times it is recommended to configure your DNS server in a way to resolve to the IP instead of accessing the IP address manually.
Note: Nextcloud is optimised for usage with just a single domain. It is thus recommended to stay with just one domain instead of using multiple ones.
iâve installed ânextcloudâ on a centos-7, under /var/www/html/192.168.1.220/ âŚ
but now iâve got a new different fixed ip-address from my âispâ - so how
do i change to the new ip-addr. without âmessingâ my current build/setup?
On the other hand, its just a foldername, and therefore a bad design desicion, but who cares. I allways use /var/www/nextcloud.
You can just leave this (changes here are not recommended). What really counts here is your DNS setup and config.php, since DNS virtualises IP adresses away for that manner.
Supplement: What does 192.168.* has to do with your ISP? What the ⌠?
Hi,
I have the same problem with Giu.
I added a new router and created a bridge connection with my old one which I changed the mode to modem.
After doing that I connected my raspberrypi, where I have the nextcloud installed, to my new router and then I got this screen to add the new ip to the trusted_domains list in config.php.
I did it and still getting the same message.
Any help would be appreciated.
Problem like this is why I donât recommended Owncloud/Nextcloud. Keep away and look for other system. Different solutions on different system, and why developer not open it for all domain and let the user blacklist domain on it self is a clue to me. And this is only the start to all the trouble the developer have built in in the system for ordinary people.
On forum how recommended Nextcloud I say no, no, no way. Its a fine idea but for special people. I like Nextcloud but not in the way the developers have put in restrictions that must be forced into the terminal and which solutions are completely different on different systems. The domain response list is just the beginning. Then itâs how big files you can upload and to access dividends through network drives etc.
Yep feel the same way but not only with nextcloud ⌠with the whole damn concept of linux. Great idea but poor execution.
Im currently stuggeling to find the location of said config/ folder. My NC is inside a docker and occ seems to be missing.
It seems that linux devs just assume that the user just happens to know where that file is?
pathtoyoufile/config/config.php
the pathtoyourfile seems to be very very variable as i ftlog can not figure out where its supposed to be.
Why isnât there an easy way to add these trusted domains inside nextcloud? On many pictures posted here i do see a link that supposedly lets you add the domain directly from the webpage. My nextxloud doesnât have that feature apparently?