halverneus / static-file-server

Tiny, simple static file server using environment variables for configuration
MIT License
400 stars 77 forks source link

feat: Add Show Index #80

Closed yankay closed 2 years ago

yankay commented 2 years ago

To fix the https://github.com/halverneus/static-file-server/issues/74, the solution is aim to add a Show Index args, so that the user can use

SHOW_INDEX=true
SHOW_LISTING=false

to serve the static file more security

yankay commented 2 years ago

HI @halverneus , would you please to review it

yankay commented 2 years ago

HI @halverneus , I have change the codes with 'allow-index', would you please review it ?

yankay commented 2 years ago

Thanks @halverneus