PierreZ / goStatic

A really small static web server for Docker
GNU General Public License v2.0
391 stars 77 forks source link

Add `enable-directory-listings` flag #65

Open aaronjamt opened 10 months ago

aaronjamt commented 10 months ago

This controls what happens when someone tries to request a path which is just a directory (not a file): When true (default), responds with a browsable directory listing (current behavior) When false, responds with the same 404 page as is provided when attempting to access a nonexistant file This prevents someone from browsing all of your static files by simply walking through the directory tree

JesseKlaasse commented 1 month ago

@PierreZ Any chances that this PR will be merged? For my project, I need the directory listing to be disabled. I could use the fallback page workaround, but that's not really what I want.