Share link not reflecting how client connected
The shareUrl is always https://{serverIP}:{Port}/..., this is problematic if the server is deployed on a proxy / through cloudflare :
If i am connected on https://mywebsite.ch (routed through a cloudflare proxy), the share url will still be http://xx.xx.xx.xx.xx:8080/...
I have changed the code so that the shareUrl is now created by the client, since the client has access to the url ( and port, protocol) he is connected to (but not server in the case of strange proxy configuration), however the code is a bit messy, so if you have a better solution this is best.