caddy/modules/caddyhttp/fileserver
Matt Holt 5a6b2f8d1d
events: Refactor; move Event into core, so core can emit events (#6930)
* events: Refactor; move Event into core, so core can emit events

Requires some slight trickery to invert dependencies. We can't have the caddy package import the caddyevents package, because caddyevents imports caddy. Interface to the rescue!

Also add two new events, experimentally: started, and stopping. At the request of a sponsor.

Also rename "Filesystems" to "FileSystems" to match Go convention (unrelated to events, was just bugging me when I noticed it).

* Coupla bug fixes

* lol whoops
2025-03-29 08:15:43 -06:00
..
testdata fileserver: fix try_policy when instantiating file matcher from CEL (#6624) 2024-10-20 14:08:30 +00:00
browse.go file_server: use the UTC timezone for modified time (#6830) 2025-02-10 08:39:43 -07:00
browse.html browse: Exclude symlink target size from total, show arrow on size (#6412) 2024-07-07 07:01:07 -06:00
browsetplcontext.go file_server: use the UTC timezone for modified time (#6830) 2025-02-10 08:39:43 -07:00
browsetplcontext_test.go fileserver: Use EscapedPath for browse (#5534) 2023-05-15 10:48:05 -06:00
caddyfile.go fileserver: good default for precompressed (#6736) 2024-12-10 08:31:43 -07:00
command.go fileserver: Add `file_limit` option for browse (to be experimental) (#6648) 2024-11-05 09:35:32 -07:00
matcher.go events: Refactor; move Event into core, so core can emit events (#6930) 2025-03-29 08:15:43 -06:00
matcher_test.go events: Refactor; move Event into core, so core can emit events (#6930) 2025-03-29 08:15:43 -06:00
staticfiles.go events: Refactor; move Event into core, so core can emit events (#6930) 2025-03-29 08:15:43 -06:00
staticfiles_test.go caddyhttp: Refactor and export SanitizedPathJoin for use in fastcgi (#4207) 2021-06-17 09:59:08 -06:00