| Age | Commit message (Collapse) | Author | 
|---|
|  | If enabled and there is an error when opening the net writer, ignore the
error and report it along with subsequent logs to stderr. | 
|  |  | 
|  | * acmeserver: Configurable `resolvers`, fix smallstep deprecations
* Improve default net/port
* Update proxy resolvers parsing to use the new function
* Update listeners.go
Co-authored-by: itsxaos <33079230+itsxaos@users.noreply.github.com>
---------
Co-authored-by: itsxaos <33079230+itsxaos@users.noreply.github.com> | 
|  | Co-authored-by: Francis Lavoie <lavofr@gmail.com> | 
|  | `ResponseController` (#5509)
* feat: add support for ResponseWriter.Unwrap()
* cherry-pick Francis' code | 
|  | Co-authored-by: Dávid Szabó <david.szabo97@gmail.com> | 
|  | Signed-off-by: cui fliter <imcusg@gmail.com> | 
|  | * Add isDir template function
* Update modules/caddyhttp/templates/tplcontext.go
Co-authored-by: Mohammed Al Sahaf <msaa1990@gmail.com>
* Fix funcIsDir return value on error
* Fix funcIsDir return false when root file system not specified
* Add stat function, remove isDir function
* Remove isDir function (really)
* Rename stat to fileStat
---------
Co-authored-by: Mohammed Al Sahaf <msaa1990@gmail.com> | 
|  |  | 
|  |  | 
|  |  | 
|  | * Serve http2 when listener wrapper doesn't return *tls.Conn
* close conn when h2server serveConn returns
* merge from upstream
* rebase from latest
* run New and Closed ConnState hook for h2 conns
* go fmt
* fix lint
* Add comments
* reorder import | 
|  |  | 
|  |  | 
|  | listener wrapper (#5424)
Co-authored-by: WeidiDeng <weidi_deng@icloud.com>
Co-authored-by: Francis Lavoie <lavofr@gmail.com> | 
|  | Co-authored-by: Matt Holt <mholt@users.noreply.github.com> | 
|  |  | 
|  | * log: make `sink` encodable
* deduplicate logger fields
* extract common fields into `BaseLog` and embed it into `SinkLog`
* amend godoc on `BaseLog` and `SinkLog`
* minor style change
---------
Co-authored-by: Francis Lavoie <lavofr@gmail.com> | 
|  | Also renamed the field to SubjectsRaw, which can be considered a breaking change but I don't expect this to affect much. | 
|  | * Delete all existing fields when fieldName is `*`
* Rearrange deletion before addition in headers
* Revert "Rearrange deletion before addition in headers"
This reverts commit 1b50eeeccc92ccd660c7896d8283c7d9e5d1fcb0.
* Treat deleting all headers as a special case
* Apply suggestions from code review
Co-authored-by: Matt Holt <mholt@users.noreply.github.com>
---------
Co-authored-by: Matt Holt <mholt@users.noreply.github.com> | 
|  |  | 
|  | * caddyhttp: Determine real client IP if trusted proxies configured
* Support customizing client IP header
* Implement client_ip matcher, deprecate remote_ip's forwarded option | 
|  | * caddytls: Zero out throttle window first
* Don't error for on-demand 
Fixes https://github.com/caddyserver/caddy/commit/b97c76fb4789b8da0b80f5a2c1c1c5bebba163b5
---------
Co-authored-by: Francis Lavoie <lavofr@gmail.com> | 
|  | Fixes: https://github.com/caddyserver/caddy/issues/5420 | 
|  |  | 
|  |  | 
|  | * fileserver: New file browse template
* Redo extension/icon logic; minor color tweaks
* Fine-tune image display | 
|  | Co-authored-by: Matt Holt <mholt@users.noreply.github.com> | 
|  |  | 
|  |  | 
|  | * core: Eliminate unnecessary shutdown delay on Unix
Fix #5393, alternate to #5405
* Comments, cleanup, adjust logs
* Fix build constraint | 
|  | Changed to match the `vars` matcher's logic for handling placeholders | 
|  |  | 
|  | Co-authored-by: Francis Lavoie <lavofr@gmail.com> | 
|  |  | 
|  | * cmd: Expand cobra support
* Convert commands to cobra, add short flags
* Fix version command typo
Co-authored-by: Emily Lange <git@indeednotjames.com>
* Apply suggestions from code review
Co-authored-by: Matt Holt <mholt@users.noreply.github.com>
---------
Co-authored-by: Emily Lange <git@indeednotjames.com>
Co-authored-by: Matt Holt <mholt@users.noreply.github.com> | 
|  | Co-authored-by: Francis Lavoie <lavofr@gmail.com>
Co-authored-by: Weidi Deng <weidi_deng@icloud.com> | 
|  |  | 
|  |  | 
|  | * reverseproxy: Don't buffer chunked requests (fix #5366)
Mostly reverts 845bc4d50b437995d574819850206e4b3db4040d (#5289)
Adds warning for unsafe config.
Deprecates unsafe properties in favor of simpler, safer designed ones.
* Update modules/caddyhttp/reverseproxy/caddyfile.go
Co-authored-by: Y.Horie <u5.horie@gmail.com>
* Update modules/caddyhttp/reverseproxy/reverseproxy.go
Co-authored-by: Y.Horie <u5.horie@gmail.com>
* Update modules/caddyhttp/reverseproxy/reverseproxy.go
Co-authored-by: Y.Horie <u5.horie@gmail.com>
* Remove unused code
---------
Co-authored-by: Y.Horie <u5.horie@gmail.com> | 
|  | * chore: Upgrade various dependencies
* Support CEL file matcher with no args
* Document `http.request.orig_uri.path.*`, reorder placeholders in docs
---------
Co-authored-by: Matt Holt <mholt@users.noreply.github.com> | 
|  | * added some tests for parseUpstreamDialAddress
Test 4 fails because it produces "[[::1]]:80" instead of "[::1]:80"
* support absolute windows path in unix reverse proxy address
* make IsUnixNetwork public, support +h2c and reuse it
* add new tests | 
|  | * log response size for websocket request
* record size when using hijack bufio.Writer | 
|  | * caddyhttp: Pluggable trusted proxy IP range sources
* Add request to the IPRangeSource interface | 
|  | * caddyauth: Add singleflight for basic auth
* Fixes #5338
* it occurred the thunder herd problem like this https://medium.com/@mhrlife/avoid-duplicate-requests-while-filling-cache-98c687879f59
* Update modules/caddyhttp/caddyauth/basicauth.go
Fix comment
Co-authored-by: Francis Lavoie <lavofr@gmail.com>
---------
Co-authored-by: Francis Lavoie <lavofr@gmail.com>
Co-authored-by: Matt Holt <mholt@users.noreply.github.com> | 
|  |  | 
|  |  | 
|  |  | 
|  | Co-authored-by: Francis Lavoie <lavofr@gmail.com>
Fixes undefined | 
|  | Fixes https://github.com/caddyserver/caddy/issues/5171 |