Nextcloud version _22.2.5
Operating system and version _FreeBSD 12.2-RELEASE-p12 amd64
nginx version _1.20.2
PHP version _7.4
Nextcloud 22.2.5 is installed as a plugin on Truenas
Initially system was installed and worked on the local domain. When I added port forwarding I edited config.txt and added my actual domain name and it worked. Now I am setting up a reverse proxy and need to access Nextcloud by the IP but I am unable to access the server using server’s local IP
Steps to replicate it:
- Edited /usr/local/www/nextcloud/config/config.php
<?php
$CONFIG = array (
'instanceid' => 'XXXXXXXXXXX',
'passwordsalt' => 'XXXXXXXXX',
'secret' => 'XXXXXXXXXXXXXXX',
'trusted_domains' =>
array (
0 => 'nextcloud.mydomain.com',
1 => 'mydomain.duckdns.org:8080',
2 => '192.168.1.5',
),
'datadirectory' =>
- Restarted webserver: service nginx restart
- http://192.168.1.5 returns " Access through untrusted domain"
- I also tried using OCC: occ config:system:set trusted_domains 2 --value=192.168.1.5
- occ config:system:get trusted_domains
nextcloud.mydomain.com
mydomain.duckdns.org:8080
The output of Nextcloud conf: cat /usr/local/www/nextcloud/config/config.php
<?php
$CONFIG = array (
'instanceid' => 'XXXXXXXXXXX',
'passwordsalt' => 'XXXXXXXXX',
'secret' => 'XXXXXXXXXXXXXXX',
'trusted_domains' =>
array (
0 => 'nextcloud.mydomain.com',
1 => 'mydomain.duckdns.org:8080',
2 => '192.168.1.5',
),
'datadirectory' =>
I also performed full Truenas reboot without success. Configuration file looks totally okay but the system is refusing to work using an IP address.