Any good alternatives to Mega.nz? Self-hosted, encrypted personal cloud - eviltoast

Trying to find a good self-hosted alternative for client-sode encrypted personal cloud. I have given Seafile a try, but it’s android app is pretty bad. It doesn’t show any thumbnails of images, and it also downloads every single file I click to view.

Im looking for something that behaves a litte more like mega.nz Where, using the app or Web, I can view pictures and videos, and then download them if I want.

Files being completely encrypted in the server is a must.