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:
parent
55800ba66d
commit
4fb071039b
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue