I configured my Nextcloud docker container with Swag and DuckDNS following these Techno Dad Life videos:
Everything is set up and working fine when I connect via the public URL. However, after setting up Nextcloud in the local network only (video 1), I was able to reach Nextcloud on its local IP (192.168.0.101:444). After installing Swag and DuckDNS (video 2), the local IP will give me ERR_CONNECTION_REFUSED.
The issue is that now whenever I upload something from my local PC, it is apparently routed through the internet, which is slow and unnecessary.
Does anybody know if it is possible to make local IP and public URL working at the same time (and how to configure this)? Or any other way to prevent the local traffic from being routed through the internet?
Thank you in advance!