0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-23 22:27:38 -05:00
caddy/modules/caddyhttp/reverseproxy
Francis Lavoie 9ee68c1bd5
reverseproxy: Adjust defaults, document defaults (#4436)
* reverseproxy: Adjust defaults, document defaults

Related to some of the issues in https://github.com/caddyserver/caddy/issues/4245, a complaint about the proxy transport defaults not being properly documented in https://caddy.community/t/default-values-for-directives/14254/6.

- Dug into the stdlib to find the actual defaults for some of the timeouts and buffer limits, documenting them in godoc so the JSON docs get them next release.

- Moved the keep-alive and dial-timeout defaults from `reverseproxy.go` to `httptransport.go`. It doesn't make sense to set defaults in the proxy, because then any time the transport is configured with non-defaults, the keep-alive and dial-timeout defaults are lost!

- Sped up the dial timeout from 10s to 3s, in practice it rarely makes sense to wait a whole 10s for dialing. A shorter timeout helps a lot with the load balancer retries, so using something lower helps with user experience.

* reverseproxy: Make keepalive interval configurable via Caddyfile

* fastcgi: DialTimeout default for fastcgi transport too
2021-11-24 01:32:25 -05:00
..
fastcgi reverseproxy: Adjust defaults, document defaults (#4436) 2021-11-24 01:32:25 -05:00
admin.go reverseproxy: Admin endpoint for reporting upstream statuses (#4125) 2021-04-21 13:43:34 -06:00
caddyfile.go reverseproxy: Adjust defaults, document defaults (#4436) 2021-11-24 01:32:25 -05:00
command.go caddyhttp: reverseproxy: clarify warning for -insecure (#4379) 2021-10-11 16:15:00 -06:00
healthchecks.go Move from deprecated ioutil to os and io packages (#4364) 2021-09-29 11:17:48 -06:00
hosts.go reverseproxy: Fix dial placeholders, SRV, active health checks (#3780) 2020-10-13 10:35:20 -06:00
httptransport.go reverseproxy: Adjust defaults, document defaults (#4436) 2021-11-24 01:32:25 -05:00
reverseproxy.go reverseproxy: Adjust defaults, document defaults (#4436) 2021-11-24 01:32:25 -05:00
selectionpolicies.go reverseproxy: fix hash selection policy (#4137) 2021-04-29 10:52:22 -06:00
selectionpolicies_test.go reverseproxy: Minor logging improvements 2021-05-05 14:52:24 -06:00
streaming.go reverseproxy: Incorporate latest proxy changes from stdlib (#4266) 2021-08-12 10:48:24 -06:00
streaming_test.go ci: Use golangci's github action for linting (#3794) 2020-11-22 14:50:29 -07:00