I went deep into to the PKMS rabbit hole a year and a half ago, benchmarked Obsidian and many many others, and settled with Trilium¹ which I can only highly recommend. It addresses all the hosting/deployment requirements of OP² without the quirky workarounds mentioned here (syncthing & al), and makes the kind of "lifestyle scripting" this article about very simple and straightforward. In my mind and experience, Trili…
Also, Trilium don't have mobile app which is very important for having notes available 24/7. Browser version don't allow offline access and not as convenient as an app
If you have internet and don't need full offline sync, you should be able to use Trilium decently well today, with the recent responsive theming efforts that went into Trilium Next.
¹: https://github.com/FliegendeWurst/TriliumDroid ²: https://github.com/orgs/TriliumNext/discussions/827