Sorry here’s a better tutorial. I might write one, it is interesting that they all suck in different ways.
https://starbeamrainbowlabs.com/blog/article.php?article=posts/237-WebDav-Nginx-Setup.html
The folder is defined by the “root” directive. Like with any other nginx setup.
Looks cool, but well the Linux app ecosystem and the inability to standardize anything and/or have simple binaries. I really don’t get the people that go for Linux for privacy/preservation/not-dependent-constantly-on-the-internet and then everything is a repository hosted somewhere that’s hard to archive or crazy container-like formats.