What is a good self-hosted solution for sharing files with friends?

https://lemmy.ml/post/38283688

What is a good self-hosted solution for sharing files with friends? - Lemmy

I have a Samba mount at home (behind NAT, accessible via wireguard VPN), which works very well when accessing my home files when traveling (I travel a lot for work). The only detail missing from this solution is sharing individual files with friends. I could give them access to my VPN, but that gives them access to everything, not just one thing I want to share. Also not all my friends are that tech savvy to manage connecting to a VPN. What would be really great is to have a link-generator that punches a hole in the NAT to give them access to specific files. Are there any self-hosted solutions for that?

xkcd.com/949/ has a few good hints.
File Transfer

xkcd
I think this summarises all the other answers here