caddy/modules/caddyhttp/reverseproxy
Matthew Holt 260982b2df reverse_proxy: Allow use of URL to specify scheme
This makes it more convenient to configure quick proxies that use HTTPS
but also introduces a lot of logical complexity. We have to do a lot of
verification for consistency and errors.

Path and query string is not supported (i.e. no rewriting).

Scheme and port can be inferred from each other if HTTP(S)/80/443.
If omitted, defaults to HTTP.

Any explicit transport config must be consistent with the upstream
schemes, and the upstream schemes must all match too.

But, this change allows a config that used to require this:

    reverse_proxy example.com:443 {
        transport http {
            tls
        }
    }

to be reduced to this:

    reverse_proxy https://example.com

which is really nice syntactic sugar (and is reminiscent of Caddy 1).
2020-02-27 21:04:28 -07:00
..
fastcgi Fix typos (#3087) 2020-02-27 19:30:48 -07:00
caddyfile.go reverse_proxy: Allow use of URL to specify scheme 2020-02-27 21:04:28 -07:00
circuitbreaker.go reverse_proxy: CB docs; rename type -> factor (#2986) 2020-01-18 18:42:56 -07:00
command.go cmd/reverse_proxy: Add --change-host-header flag 2020-02-27 21:04:28 -07:00
healthchecks.go reverse_proxy: Health checks: Don't cross the streams 2020-02-23 14:31:05 -07:00
hosts.go Fix typos (#3087) 2020-02-27 19:30:48 -07:00
httptransport.go reverseproxy: Fix casing of RootCAPEMFiles 2020-01-22 09:35:03 -07:00
ntlm.go Improve godocs all around 2019-12-23 12:45:35 -07:00
reverseproxy.go reverse_proxy: Health checks: Don't cross the streams 2020-02-23 14:31:05 -07:00
selectionpolicies.go reverse_proxy: CB docs; rename type -> factor (#2986) 2020-01-18 18:42:56 -07:00
selectionpolicies_test.go Migrate some selection policy tests over to v2 2019-09-09 21:44:58 -06:00
streaming.go v2: housekeeping: address minor lint complaints (#2957) 2020-01-03 11:33:22 -07:00