Problem with old Kirby 2 Panel rewrites in Caddy v2

Thanks for you help Francis, I tried the following, but cannot get it to work. I’m obviously doidn gsomething wrong, but can’t quite see what… first time in Caddy 2

@panel_files {
    file {
      path /panel
      try_files {path} /index.php
    }
 }
 rewrite @panel_files {http.matchers.file.relative}

It does not work without this because it is like a seperate set of rewites and index.php under /panel. Of course the normal site with the index.php in the root works fine with the normal php_fastcg try_files` behaviour.