caddy/caddytest/integration
Matt Holt ab0455922a
reverseproxy: Dynamic upstreams (with SRV and A/AAAA support) (#4470)
* reverseproxy: Begin refactor to enable dynamic upstreams

Streamed here: https://www.youtube.com/watch?v=hj7yzXb11jU

* Implement SRV and A/AAA upstream sources

Also get upstreams at every retry loop iteration instead of just once
before the loop. See #4442.

* Minor tweaks from review

* Limit size of upstreams caches

* Add doc notes deprecating LookupSRV

* Provision dynamic upstreams

Still WIP, preparing to preserve health checker functionality

* Rejigger health checks

Move active health check results into handler-specific Upstreams.

Improve documentation regarding health checks and upstreams.

* Deprecation notice

* Add Caddyfile support, use `caddy.Duration`

* Interface guards

* Implement custom resolvers, add resolvers to http transport Caddyfile

* SRV: fix Caddyfile `name` inline arg, remove proto condition

* Use pointer receiver

* Add debug logs

Co-authored-by: Francis Lavoie <lavofr@gmail.com>
2022-03-06 17:43:39 -07:00
..
caddyfile_adapt reverseproxy: Dynamic upstreams (with SRV and A/AAAA support) (#4470) 2022-03-06 17:43:39 -07:00
testdata caddyfile: Add args on imports (#3423) 2020-06-01 10:43:06 -06:00
autohttps_test.go caddyhttp: Fix edgecase with auto HTTP->HTTPS logic (#4243) 2021-07-14 10:49:34 -06:00
caddyfile_adapt_test.go Move from deprecated ioutil to os and io packages (#4364) 2021-09-29 11:17:48 -06:00
caddyfile_test.go refactored caddytest helpers (#3285) 2020-04-27 13:23:46 +12:00
handler_test.go browse: align template to struct field renames from 4940325 (#3706) 2020-09-08 10:45:48 -06:00
map_test.go map: Accept regex substitution in outputs (#3991) 2021-03-10 14:22:33 -07:00
reverseproxy_test.go Move from deprecated ioutil to os and io packages (#4364) 2021-09-29 11:17:48 -06:00
sni_test.go map: Reimplement; multiple outputs; optimize 2020-10-02 14:23:56 -06:00
stream_test.go Move from deprecated ioutil to os and io packages (#4364) 2021-09-29 11:17:48 -06:00