I think Synology has something like that if you use their NAS, but I've never tried it. Also, this isn't self-hosted but it's fully encrypted: [CryptPad](https://cryptpad.fr/)
Discussion
Actually, I spoke too soon. Apparently it's open source and can be self hosted: https://github.com/cryptpad/cryptpad