caddy/modules
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
..
caddyhttp reverse_proxy: Allow use of URL to specify scheme 2020-02-27 21:04:28 -07:00
caddytls Fix typos (#3087) 2020-02-27 19:30:48 -07:00
filestorage v2: Module documentation; refactor LoadModule(); new caddy struct tags (#2924) 2019-12-10 13:36:46 -07:00
logging v2: 'log' directive for Caddyfile, and debug mode (#3052) 2020-02-25 22:00:33 -07:00
standard cmd: Move module imports into standard packages 2019-11-04 12:13:21 -07:00