release 1.9.2: Caddy bare redir * footgun (code 21) + absolute apply path
This commit is contained in:
parent
ae6c94897d
commit
530385b19d
4 changed files with 47 additions and 5 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue