frp icon indicating copy to clipboard operation
frp copied to clipboard

[Feature Request] static_file: disable directory listing

Open Guanran928 opened this issue 9 months ago • 1 comments

Describe the feature request

Disable directory listing in plugin static_file.

I am hosting a Mastodon instance from home, and I am using frps to host it over NAT.

Mastodon need to serve media files under example.org/system/ without file listing, or it will show "Your web server is misconfigured" https://docs.joinmastodon.org/admin/optional/object-storage/#FS

image

Describe alternatives you've considered

Install an additional web server and proxy it through frp.

Affected area

  • [ ] Docs
  • [ ] Installation
  • [ ] Performance and Scalability
  • [X] Security
  • [ ] User Experience
  • [ ] Test and Release
  • [ ] Developer Infrastructure
  • [X] Client Plugin
  • [ ] Server Plugin
  • [ ] Extensions
  • [ ] Others

Guanran928 avatar May 21 '24 16:05 Guanran928