caddy/caddyconfig
Francis Lavoie b82db994f3
caddyfile: Add parse error on site address with trailing { (#4163)
* caddyfile: Add parse error on site address in `{`

This is an incredibly common mistake made by users, so we should catch it earlier in the parser and give a more friendly message. Often it ends up adapting but with mistakes, or erroring out later due to other site addresses being read as directives.

There's not really ever a situation where a lone '{' is valid at the end of a site address (but I suppose there are edgecases where the user wants to use a path matcher where it ends specifically in `{`, but... why?), so this should be fine.

* Update caddyconfig/caddyfile/parse.go
2021-05-12 16:18:44 -06:00
..
caddyfile caddyfile: Add parse error on site address with trailing { (#4163) 2021-05-12 16:18:44 -06:00
httpcaddyfile httpcaddyfile: Fix automation policy consolidation again (fix #4161) 2021-05-11 15:26:07 -06:00
configadapters.go admin: Identity management, remote admin, config loaders (#3994) 2021-01-27 16:16:04 -07:00
httploader.go admin: Identity management, remote admin, config loaders (#3994) 2021-01-27 16:16:04 -07:00
load.go admin: Identity management, remote admin, config loaders (#3994) 2021-01-27 16:16:04 -07:00