Disable directory listings in HTTP FileServers #6

Open
opened 2021-12-09 03:16:02 +00:00 by rob · 0 comments
Owner

backend/server/server.go Lines 254 to 261 in fb3a497119
if options.Config.AssetsHTTPRoot != "" {
log.With("root", options.Config.AssetsHTTPRoot).Info("Configured to serve assets over HTTP")
fileHandler = http.FileServer(http.Dir(options.Config.AssetsHTTPRoot))
}
if options.Config.FileStoreHTTPRoot != "" {
log.With("root", options.Config.FileStoreHTTPRoot).Info("Configured to serve file store over HTTP")
fileHandler = http.FileServer(http.Dir(options.Config.FileStoreHTTPRoot))
}

https://git.netflux.io/rob/clipper/src/commit/fb3a497119222c20c523bc09a658f71dcff28d49/backend/server/server.go#L254-L261
rob added the
bug
backend
labels 2021-12-09 03:16:02 +00:00
rob closed this issue 2022-01-08 11:17:04 +00:00
rob reopened this issue 2022-01-10 07:40:13 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: rob/clipper#6
No description provided.