0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-23 22:27:38 -05:00
caddy/modules/caddyhttp/reverseproxy
Matthew Holt e51e56a494
httpcaddyfile: Fix nested blocks; add handle directive; refactor
The fix that was initially put forth in #2971 was good, but only for
up to one layer of nesting. The real problem was that we forgot to
increment nesting when already inside a block if we saw another open
curly brace that opens another block (dispenser.go L157-158).

The new 'handle' directive allows HTTP Caddyfiles to be designed more
like nginx location blocks if the user prefers. Inside a handle block,
directives are still ordered just like they are outside of them, but
handler blocks at a given level of nesting are mutually exclusive.

This work benefitted from some refactoring and cleanup.
2020-01-16 17:08:52 -07:00
..
fastcgi httpcaddyfile: Fix nested blocks; add handle directive; refactor 2020-01-16 17:08:52 -07:00
caddyfile.go reverse_proxy: Add tls_trusted_ca_certs to Caddyfile (#2936) 2020-01-07 12:07:42 -07:00
circuitbreaker.go v2: Module documentation; refactor LoadModule(); new caddy struct tags (#2924) 2019-12-10 13:36:46 -07:00
command.go Minor improvements; comments and shorter placeholders & module IDs 2019-12-12 14:31:20 -07:00
healthchecks.go http: Change routes to sequential matcher evaluation (#2967) 2020-01-09 10:00:13 -07:00
hosts.go http: Change routes to sequential matcher evaluation (#2967) 2020-01-09 10:00:13 -07:00
httptransport.go http: Change routes to sequential matcher evaluation (#2967) 2020-01-09 10:00:13 -07:00
ntlm.go Improve godocs all around 2019-12-23 12:45:35 -07:00
reverseproxy.go http: Change routes to sequential matcher evaluation (#2967) 2020-01-09 10:00:13 -07:00
selectionpolicies.go v2: Module documentation; refactor LoadModule(); new caddy struct tags (#2924) 2019-12-10 13:36:46 -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