I'm using gitea to self-host, works well for markdowns and code, but bad for anything that is binary(pdf,media files,etc), because of git, which really does not fit for binaries, and git-lfs is a PITA to use still
Most of the time I want to attach binary files to notes, so I thought about using a sync solution like NextCloud or FileRun (with syncthing) and just link to my files.
The binary thing is a challenge for me as well as part of my filing includes always making copies of web sites and office and pdf to check for versioning and edits. I frequently try to remember or check if web sites changed info or released a new version so I need a link and a frozen copy. Git does not like this and gets real big, real fast.