Pr0dt0s / obsidian-html-server

Obsidian plugin to serve a vault as an html site.
GNU General Public License v3.0
75 stars 4 forks source link

any way to specify a subfolder as root for the server? #18

Open farhansolodev opened 9 months ago

farhansolodev commented 9 months ago

I'd like to serve some specific notes only, and so it would be great if I could make localhost:8080 point to, say /public/ within my vault. Makes it more secure since this way nobody can bruteforce their way into viewing notes in my vault I don't want them to see (I am serving these on the public internet).

I imagine you'd also have to add in logic to prevent users from trying to go to a parent directory though, like: localhost:8080/../sensitive.md because as of now you can do that.

Edit: btw, I don't mind trying to add something like this myself, so some build/manual installation steps would be great