Does it? If so, how to set it up?
WebDAV with my own server, that is.
There is a Webdav sync plugin for Obsidian.
which can be used with a third-party server too? Or only with the one of Obsidian?
It can be used with 3rd party. It should work with NC webdav.