release 1.9.2: Caddy bare redir * footgun (code 21) + absolute apply path

This commit is contained in:
Hernâni Marques 2026-07-19 01:08:18 +02:00
parent ae6c94897d
commit 530385b19d
No known key found for this signature in database
GPG key ID: CB5738652768F7E9
4 changed files with 47 additions and 5 deletions

View file

@ -22,9 +22,17 @@ API). Prepared config is only under **`/home/hernani/koopa-caddy/Caddyfile`**.
## One-shot as root (recommended)
```bash
# absolute path required: as root, ~ is /root (not /home/hernani)
sudo /home/hernani/koopa-caddy/apply-monitoring-live.sh
# or already root:
# /home/hernani/koopa-caddy/apply-monitoring-live.sh
```
**Caddy bare-path redir (v1.9.2+):** inside a `handle` block use
`redir * /path/ 302` — never `redir /path/ 302` alone (Caddy treats the first
token as matcher and sets `Location: 302`, so bare URLs fall through to the
merchant API as JSON **code 21**).
That script:
1. `rsync` staging HTML → `/var/www/monitoring-sites/` (incl. surface + aptdeploy)