Change/modify shared Link

Hi I Host my own Cloud on my private Server. so my way of reaching the Server is https://cloud
If I share a Document via Link it will be:

Is it possible to change the shared link by default so its more like
without the need of reaching the cloud via

so i can send it to friends without the need of changing the link manually?

Thanks in advance

From what i have observed in the past the links will be created based on the URL you’re using to access ownCloud. So if you’re accessing it via the shared link would be generated as

BUT the Server has its own Public IP on my Internetgateway so internally i cant reach because my Gateway would say DNS Loopback detected so i have to use just cloud