The real kicker is that having the data on my own server is certainly nice, but I just don't think it's less likely to be exposed while I'm holding it vs someone else. I remember when everyone had a self-hosted WordPress blog. Eventually you'd get tired of applying patches every 2 weeks and instantly get added to a bot farm. No thank you.
https://github.com/matrix-org/synapse/blob/master/INSTALL.md
If they're people who want a web client you can look at mod_conversejs: https://modules.prosody.im/mod_conversejs - but it is not as comprehensive a web client as Element, in my opinion.
Here is the last time I complained about matrix. https://news.ycombinator.com/item?id=25100873
I saw your comment and considered posting a facetious comment about how you would need 80TB of ram and at least twice as much disk space.... but that would add nothing to the discussion.
Of course I was using sqlite when there weren't nearly as many users as there are today or when I had federation disabled.
I run a matrix server, which has been nothing but a constant pain. My friends that use it can also use my ircv3 server or xmpp server that I run that use no resources and take up none of my time with maintenance. They do not. The only thing I've run that they like better so far is mattermost. I don't like the open core though. Matrix, xmpp and irc are backed by ldap which is impossible with mattermost.