I am running NextCloud as an app on a TrueNAS device. The version is the release 32.0.3.
I am able to both access NextCloud on my network through putting in my NAS’s internal IP and I can access it through putting in my router’s IP with the port in web. However, when I try to share a file using the share file through link, the link is always internal which doesn’t help if I am trying to say share with a friend.
The problem is you access the system internally using an IP so it uses this IP to build share links. Don’t do this and follow the right approach using split-brain DNS: 101: Split-Brain DNS (split-horizon)