[GH-ISSUE #4233] [Feature Request] static_file: disable directory listing #3336

Closed
opened 2026-05-05 14:09:06 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @Guanran928 on GitHub (May 21, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/4233

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
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @Guanran928 on GitHub (May 21, 2024). Original GitHub issue: https://github.com/fatedier/frp/issues/4233 ### 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](https://github.com/fatedier/frp/assets/68757440/de11ced8-6d58-4d17-a446-8da418326108) ### 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
gitea-mirror 2026-05-05 14:09:06 -06:00
Author
Owner

@fatedier commented on GitHub (May 22, 2024):

We currently will not provide more support for plugins like static_file, its purpose is only to quickly meet certain simple needs, for more complex strategies, it should be used in conjunction with a proxy like nginx.

For complex proxy capability requirements, we have considered this in v2, but it is a long-term plan and will not be implemented in the short term.

<!-- gh-comment-id:2123777504 --> @fatedier commented on GitHub (May 22, 2024): We currently will not provide more support for plugins like `static_file`, its purpose is only to quickly meet certain simple needs, for more complex strategies, it should be used in conjunction with a proxy like nginx. For complex proxy capability requirements, we have considered this in v2, but it is a long-term plan and will not be implemented in the short term.
Author
Owner

@github-actions[bot] commented on GitHub (Jun 13, 2024):

Issues go stale after 21d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.

<!-- gh-comment-id:2164140415 --> @github-actions[bot] commented on GitHub (Jun 13, 2024): Issues go stale after 21d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#3336
No description provided.