Share link external and internal option

Hi community,

I’m facing an interesting requirement that might be solved or not. But I could not find the solution googling around.

I usually deploy nc for intranet to allow organization user to collaborate, pretty basic setup.
Now there is the need to share file with external users, who can not access the intranet. That was solved by using a reverse proxy that only allow external users to reach the shared links url.

Users are able to share the link by clicking on sharing and then copying the link like… and then exchange the hostname to the public hostname used by the proxy

The challenge am facing, is that users sometimes don’t understand how to exchange the hostname or sometimes simply they forget to do so.

So, I was wondering if there is a solution, to display in the sharing options, an option to share links outside of the intranet which will automatically return the right hostname in the link.

What would be the best way to implement this?

thanks in advance for any help.

All the best,

I think the best way is to use the external Nextcloud url also from the intranet. Than there is no need to change it. I use an intranet Nextcloud with only one name from intranet and internet. For use without a reverse proxy search Hairpinning or NAT Loopback.

But i don’t know if you can configure this regarding reverse proxy or also ssl certificate. In terms of security it makes no difference as long as the user restrictions can be maintained from the outside if they are considered reasonable.