How to reuse matchers between site blocks?

I want to reuse

  @nonLocal {
    not remote_ip

between my site blocks, but caddy tells me that

cannot define a matcher outside of a site bloc

So what is the recommended way to reuse matches?

I also initially wanted to define

  @local {

and then define

@nonLocal {
  not @local

but this resulted in parser errors.


This is actually a work in progress, but it’s very tricky to get right.