I had similar thoughts, and built myself a little framework for this: https://www.smallweb.run
The key feature it adds compared to your own setup is mapping subfolders to subdomains (+ dynamic websites, but you don't seem interested in that).
ex: ~/smallweb/example => https://example.localhost
We have a little discord community at https://discord.smallweb.run if anyone is interested.
replies(1):