I use Notesnook and I'm happy with it. They have a flagship instance with free accounts if you don't want to self-host.
If you want something more lightweight and are up for using syncthing, just a bunch of markdown files synced with syncthing also works. You can encrypt them with your pgp key if you want encryption, but that doesn't encrypt metadata like file names, directory structure, or when files were last edited.