Disable directory listings in HTTP FileServers #6
rob
commented 2021-12-09 03:16:02 +00:00
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 2021-12-09 03:16:02 +00:00
bug
backend
labels
rob
referenced this issue from a commit 2022-01-08 11:17:04 +00:00
Disable directory listings in http.FileServer.
rob
closed this issue 2022-01-08 11:17:04 +00:00
rob
reopened this issue 2022-01-10 07:40:13 +00:00
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?