Closed autoantwort closed 1 month ago
This might be a good one for @francislavoie if he has a moment :slightly_smiling_face:
Yep it's on my radar.
Ah actually we do have that kind of error (if you comment out import https_proxy
you get this):
Error: Caddyfile:1: cannot define a matcher outside of a site block: '@rwth-netz'
But it's an order of operations problem. We try to replace import
first before parsing, but the import doesn't work because we gave up reading snippets since we found something invalid before that.
So we'll need to shift the "global matchers" check to the same place we do snippet loading, I think.
Edit: Simple fix https://github.com/caddyserver/caddy/pull/6339
For me it was not obvious from the documentation that it is forbidden to write global matchers, so I wrote:
But the error message I got was
The error message is very misleading.