NextCloud Trusted domains
Trusted domains
All URLs used to access your Nextcloud server must be whitelisted in your config.php file, under the trusted_domains setting. Users are allowed to log into Nextcloud only when they point their browsers to a URL that is listed in the trusted_domains setting. You may use IP addresses and domain names. A typical configuration looks like this:
'trusted_domains' =>
array (
0 => 'localhost',
1 => 'server1.example.com',
2 => '192.168.1.50',
3 => '[fe80::1:50]',
),
正常config.php是在/var/www/html下面,
通过docker部署nextcloud,需要修改config.php文件,在
/var/lib/docker/volumes/nextcloud/_data/config.php