Synology disk station software does this, but that's a significant investment. If you open the DS file software it defaults to syncing your photos. I don't run mine public, so I've never checked how their VPN/cloud sync thing works.
If I want to share a photo from my phone I use syncthing hosted on one of my VMs on a server I bought and built, but that I don't have physical access to easily (I'll never see it, probably). At home to share a photo I either use mattermost to get a public link to the stored image or ssh to the same box as syncthing runs on. I also host mattermost, on a different VM on a different server in the same datacenter.
I don't like apps seeing my stuff so I just don't use stuff like imgur or whatever.
If I want to share a photo from my phone I use syncthing hosted on one of my VMs on a server I bought and built, but that I don't have physical access to easily (I'll never see it, probably). At home to share a photo I either use mattermost to get a public link to the stored image or ssh to the same box as syncthing runs on. I also host mattermost, on a different VM on a different server in the same datacenter.
I don't like apps seeing my stuff so I just don't use stuff like imgur or whatever.