caddy/caddyconfig/httpcaddyfile
Alban Lecocq ff6ca577ec
httpcaddyfile: Fix unexpectedly removed policy (#4128)
* httpcaddyfile: Fix unexpectedly removed policy

When user set on_demand tls option in a catch-all (:443) policy,
we expect other policies to not have the on_demand enabled
See ex in tls_automation_policies_5.txt

Btw, we can remove policies if they are **all** empty.

* Update caddyconfig/httpcaddyfile/tlsapp.go

Co-authored-by: Matt Holt <mholt@users.noreply.github.com>

Co-authored-by: Matt Holt <mholt@users.noreply.github.com>
2021-04-29 10:56:01 -06:00
..
addresses.go
addresses_fuzz.go
addresses_test.go
builtins.go httpcaddyfile: Add `error` directive for the existing handler (#4034) 2021-03-12 13:25:49 -07:00
builtins_test.go caddyconfig: add global option for configuring loggers (#4028) 2021-03-12 13:00:02 -07:00
directives.go httpcaddyfile: Add `error` directive for the existing handler (#4034) 2021-03-12 13:25:49 -07:00
directives_test.go
httptype.go caddyconfig: add global option for configuring loggers (#4028) 2021-03-12 13:00:02 -07:00
httptype_test.go
options.go caddyconfig: add global option for configuring loggers (#4028) 2021-03-12 13:00:02 -07:00
options_test.go caddyconfig: add global option for configuring loggers (#4028) 2021-03-12 13:00:02 -07:00
pkiapp.go acmeserver: Support custom CAs from Caddyfile 2021-02-02 17:23:52 -07:00
serveroptions.go caddyfile: Refactor unmarshaling of module tokens 2021-01-05 14:39:30 -07:00
tlsapp.go httpcaddyfile: Fix unexpectedly removed policy (#4128) 2021-04-29 10:56:01 -06:00
tlsapp_test.go