summaryrefslogtreecommitdiff
path: root/modules/caddyhttp/fileserver/staticfiles_test.go
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2020-02-27 20:56:24 -0700
committerMatthew Holt <mholt@users.noreply.github.com>2020-02-27 21:04:28 -0700
commit260982b2dfc2cbf30c9b6e3a06f54e589344fc41 (patch)
tree06bdf23e20f274d2753f6398cab266fa3da674a9 /modules/caddyhttp/fileserver/staticfiles_test.go
parent0130b699df7a3e669a60732b465079cdd7a4addb (diff)
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).
Diffstat (limited to 'modules/caddyhttp/fileserver/staticfiles_test.go')
0 files changed, 0 insertions, 0 deletions