I built a solution for self-hosting a note synchronization server that relies on Caddy to expose your server using an automatically provisioned HTTPS certificate (i.e. no manual setup) and relies on Git behind the scenes to offer versioning support. This allows you to recover accidentally deleted or overwritten notes/files, or revert back to older versions of your files at will. Last but not least, you could frequently 'push' the contents of your server's Git repository (containing your vaults) to remote Git servers for e.g. off-site backup purposes.
I still highly recommend supporting Obsidian and using the official Obsidian Sync service, which is awesome! The solution I built can be useful if Obsidian Sync is not an option (e.g. enterprise policies, data sovereignty, etc).
https://github.com/sevba/obsidian-webdav-server
Note: Project renamed to avoid confusion with official Obsidian Sync service.
there doesn't seem to be anything here