caddy/caddyconfig
Matt Holt 2f59467ac3
httpcaddyfile: Only append TLS conn policy if it's non-empty (#3319)
This can lead to nicer, smaller JSON output for Caddyfiles like this:

	a {
		tls internal
	}
	b {
		tls foo@bar.com
	}

i.e. where the tls directive only configures automation policies, and
is merely meant to enable TLS on a server block (if it wasn't implied).
This helps keeps implicit config implicit.

Needs a little more testing to ensure it doesn't break anything
important.
2020-05-05 12:37:52 -06:00
..
caddyfile caddyconfig: Don't start comments in middle of tokens (#3267) 2020-05-05 12:32:12 -06:00
httpcaddyfile httpcaddyfile: Only append TLS conn policy if it's non-empty (#3319) 2020-05-05 12:37:52 -06:00
configadapters.go core: Don't return error on RegisterModule() and RegisterAdapter() 2020-04-13 09:48:54 -06:00
load.go caddyconfig: register adapters as Caddy modules (#3132) 2020-03-21 16:49:10 -06:00