caddy/modules/caddyhttp
Matt Holt 3a3182fba3
reverseproxy: Add more debug logs (#5793)
* reverseproxy: Add more debug logs

This makes debug logging very noisy when reverse proxying, but I guess
that's the point.

This has shown to be useful in troubleshooting infrastructure issues.

* Update modules/caddyhttp/reverseproxy/streaming.go

Co-authored-by: Francis Lavoie <lavofr@gmail.com>

* Update modules/caddyhttp/reverseproxy/streaming.go

Co-authored-by: Francis Lavoie <lavofr@gmail.com>

* Add opt-in `trace_logs` option

* Rename to VerboseLogs

---------

Co-authored-by: Francis Lavoie <lavofr@gmail.com>
2023-10-11 13:36:20 -06:00
..
caddyauth ci: use gci linter (#5708) 2023-08-14 09:41:15 -06:00
encode encode: Add application/wasm* to the default content types (#5869) 2023-10-10 21:18:37 +00:00
fileserver fileserver: Add command shortcuts -l and -a (#5854) 2023-10-10 20:57:18 +00:00
headers caddyhttp: Make use of http.ResponseController (#5654) 2023-08-02 20:03:26 +00:00
map map: Clarified how destination values should be formatted (#5156) 2022-10-18 18:14:53 -06:00
proxyprotocol ci: use gci linter (#5708) 2023-08-14 09:41:15 -06:00
push ci: use gci linter (#5708) 2023-08-14 09:41:15 -06:00
requestbody ci: use gci linter (#5708) 2023-08-14 09:41:15 -06:00
reverseproxy reverseproxy: Add more debug logs (#5793) 2023-10-11 13:36:20 -06:00
rewrite ci: use gci linter (#5708) 2023-08-14 09:41:15 -06:00
standard proxyprotocol: Add PROXY protocol support to reverse_proxy, add HTTP listener wrapper (#5424) 2023-03-31 17:44:53 -04:00
templates templates: Add dummy RemoteAddr to httpInclude request, proxy compatibility (#5845) 2023-10-07 20:47:34 +00:00
tracing ci: use gci linter (#5708) 2023-08-14 09:41:15 -06:00
app.go ci: use gci linter (#5708) 2023-08-14 09:41:15 -06:00
autohttps.go ci: use gci linter (#5708) 2023-08-14 09:41:15 -06:00
caddyhttp_test.go fileserver: Reject ADS and short name paths; trim trailing dots and spaces on Windows (#5148) 2022-10-18 21:55:25 -06:00
caddyhttp.go ci: Use gofumpt to format code (#5707) 2023-08-07 19:40:31 +00:00
celmatcher_test.go Expose several Caddy HTTP Matchers to the CEL Matcher (#4715) 2022-06-22 18:53:46 -04:00
celmatcher.go ci: use gci linter (#5708) 2023-08-14 09:41:15 -06:00
duplex_go120.go ci: Update to Go 1.21 (#5719) 2023-08-09 12:34:28 -04:00
duplex_go121.go ci: Update to Go 1.21 (#5719) 2023-08-09 12:34:28 -04:00
errors.go caddyhttp: Preserve original error (fix #5652) 2023-07-25 09:41:56 -06:00
http2listener.go caddyhttp: Serve http2 when listener wrapper doesn't return *tls.Conn (#4929) 2023-04-10 17:05:02 +00:00
httpredirectlistener.go caddyhttp: Use LimitedReader for HTTPRedirectListener 2023-09-26 07:32:46 -06:00
invoke.go caddyhttp: Implement named routes, invoke directive (#5107) 2023-05-16 15:27:52 +00:00
ip_matchers.go ci: use gci linter (#5708) 2023-08-14 09:41:15 -06:00
ip_range.go caddyhttp: Pluggable trusted proxy IP range sources (#5328) 2023-02-06 12:44:11 -07:00
logging.go ci: use gci linter (#5708) 2023-08-14 09:41:15 -06:00
marshalers.go caddyhttp: Determine real client IP if trusted proxies configured (#5104) 2023-03-27 20:22:59 +00:00
matchers_test.go caddyhttp: Trim dot/space only on Windows (fix #5613) 2023-07-08 13:42:13 -06:00
matchers.go ci: use gci linter (#5708) 2023-08-14 09:41:15 -06:00
metrics_test.go move common metrics-related funcs to internal package 2022-01-25 15:07:17 -05:00
metrics.go ci: use gci linter (#5708) 2023-08-14 09:41:15 -06:00
replacer_test.go caddyhttp: Remote IP prefix placeholders 2022-09-30 13:29:33 -06:00
replacer.go ci: use gci linter (#5708) 2023-08-14 09:41:15 -06:00
responsematchers_test.go reverseproxy: Add handle_response blocks to reverse_proxy (#3710) (#4021) 2021-05-02 12:39:06 -06:00
responsematchers.go reverseproxy: Mask the WS close message when we're the client (#5199) 2022-11-14 09:38:02 -07:00
responsewriter_test.go caddyhttp: Impl ResponseWriter.Unwrap(), prep for Go 1.20's ResponseController (#5509) 2023-04-26 19:44:01 -04:00
responsewriter.go caddyhttp: Make use of http.ResponseController (#5654) 2023-08-02 20:03:26 +00:00
routes.go caddyhttp: Implement named routes, invoke directive (#5107) 2023-05-16 15:27:52 +00:00
server_test.go logging: Add traceID field to access logs when tracing is active (#5507) 2023-04-27 02:46:41 +00:00
server.go ci: use gci linter (#5708) 2023-08-14 09:41:15 -06:00
staticerror.go reverseproxy: Mask the WS close message when we're the client (#5199) 2022-11-14 09:38:02 -07:00
staticresp_test.go Move from deprecated ioutil to os and io packages (#4364) 2021-09-29 11:17:48 -06:00
staticresp.go ci: use gci linter (#5708) 2023-08-14 09:41:15 -06:00
subroute.go reverseproxy: Enable changing only the status code (close #2920) 2020-06-04 12:06:38 -06:00
vars.go caddyhttp: Fix vars_regexp matcher with placeholders (#5408) 2023-03-02 09:01:54 -07:00