I want to run a Nextcloud server on my home network and I also want it to be accessible from the internet. Instead trying to tunnel the port to internet and messing with SSL certificates, running it as a hidden Tor onion service seems to be the best solution. Ideally I can use the same (onion) address for connecting my Nextcloud clients to the server, both while at home and while away from home.
One question I have is: if I use the onion address on my home network, will traffic go out of my home network before connecting to my Nextcloud Tor service, or will it minimize this?
It would obviously make a big difference in speed if it can connect directly.