Is there a good 2026 guide for Nextcloud install in Truenas ?
I am having issues with “access through untrusted domain” in nextcloud when trying to access through Netbird reverse-proxy.
Is there a good 2026 guide for Nextcloud install in Truenas ?
I am having issues with “access through untrusted domain” in nextcloud when trying to access through Netbird reverse-proxy.
nextcloud trusted domain list.
192.168.1.2
192.168.1.1 <------------- simply add your gateway to the trusted domains
Sorry I am a noobie to both Truenas and Nextcloud…How do i get to the trusted domains list ?
a simple search will do …
Standard path: (/var/www/nextcloud/config/config.php)
thanks for the help as to where to find the file
Trust me when i say this. You dont want to run Nextcloud inside truenas container. I recommend separate machine with Ubuntu Server running on bare metal with capable CPU. Every other “solution” is just asking for trouble. You are going to have terrible performance and huge issues with updates. Its just not worth it. Been there, done that, its awful.
Check this tutorial on how to properly set it up.
That error is usually a Nextcloud trust/proxy config issue rather than a bad TrueNAS install.
If you’re reaching Nextcloud through a NetBird reverse proxy, add the proxy hostname to trusted_domains and make sure the proxy IP/range is listed under trusted_proxies. If HTTPS terminates at NetBird, overwriteprotocol => 'https' may also be needed.
I’d fix those settings first before changing the TrueNAS app itself.
The problem if finding where the config.php is located so I can edit it.
that’s actually not true. I run many Nextcloud instances for customers as Docker containers and they perform very well. As long as the host has enough CPUs and RAM for the expected load and users its no problem. Also caching with Redis makes a big difference.
should be under /mnt/tank/apps/nextcloud/html/config/config.php
You can also use the occ command like follows from the command line:
docker exec --user www-data nextcloud php occ config:system:set trusted_domains 0 --value=“cloud.example.com”
docker exec --user www-data nextcloud php occ config:system:set trusted_domains 1 --value=“192.168.1.20”
docker exec --user www-data nextcloud php occ config:system:set trusted_proxies 0 --value=“192.168.1.10”
docker exec --user www-data nextcloud php occ config:system:set overwritehost --value=“cloud.example.com”
docker exec --user www-data nextcloud php occ config:system:set overwriteprotocol --value=“https”
docker exec --user www-data nextcloud php occ config:system:set overwrite.cli.url --value=“https://cloud.example.com”