Connect to drive internally and externally depending on location possible?

Hi all,

I was wondering whether it’s possible to connect to my Nextcloud server via webdav and mount the same drive with local network IP and optionally remote address. I couldn’t find an option to achieve this, is this possible somehow? I now have 2 seperate drives mounted, and it’s annoying for the users to get an error message when they are not connected to the local network…

Thank you!