Caddyfile: use a named path matcher for the /thermograph routes (#14)

The handle directive takes a single matcher token; two space-separated paths
(/thermograph /thermograph/*) fail to parse with 'Wrong argument count'. Match
both via a named @thermograph path matcher instead. Verified with caddy validate.
This commit is contained in:
Emi Griffith 2026-07-10 20:23:28 -07:00 committed by GitHub
parent 55800ba66d
commit 4fb071039b

View file

@ -17,7 +17,8 @@ emigriffith.dev {
# Thermograph — the app serves all pages, assets, and API under /thermograph. # Thermograph — the app serves all pages, assets, and API under /thermograph.
# Match both the bare prefix and everything beneath it; the app redirects the # Match both the bare prefix and everything beneath it; the app redirects the
# bare /thermograph to /thermograph/. # bare /thermograph to /thermograph/.
handle /thermograph /thermograph/* { @thermograph path /thermograph /thermograph/*
handle @thermograph {
reverse_proxy 127.0.0.1:8137 reverse_proxy 127.0.0.1:8137
} }