# What federated.sh's site block needs, wherever its Caddyfile is. `handle` # blocks are tried in order and only the first match runs, so /report goes to # the receiver and everything else does what it did before. A top-level `redir` # runs before any `handle`, so the existing redirect has to move into the # catch-all `handle` below, or POSTs to /report would be redirected too. federated.sh { @report path /report /report/* handle @report { request_body { max_size 11MB } reverse_proxy 127.0.0.1:8650 } handle { # ...the existing directives for federated.sh, unchanged, e.g. the # redirect that sends wget to install.sh } }