Disable directory listings in HTTP FileServers #6
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
bug
backend
labels
Disable directory listings in http.FileServer.
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?