fix: Caddy routing uses handle blocks for correct path priority
Author: Aaron Steven White
Commit
9820a9f9105aa15b94d7bc1321ffe531653d5a5cParent: 6a965315e7
Structural diff unavailable
These commits were pushed via plain git push, so no pre-parsed
schemas are available. Install git-remote-cospan and re-push via panproto:// to
see scope-level changes, breaking change detection, and semantic diffs.
brew install panproto/tap/git-remote-cospan1 file changed +20 -21
@@ -1,30 +1,29 @@
11 # Production reverse proxy with automatic TLS via Let's Encrypt. 2-# Usage: caddy run --config Caddyfile 32 43 cospan.dev { 5- # Frontend (SvelteKit) 6- reverse_proxy /* localhost:3002 4+ # AppView endpoints (more specific paths first) 5+ handle /xrpc/* { 6+ reverse_proxy localhost:3000 7+ } 8+ handle /oauth/* { 9+ reverse_proxy localhost:3000 10+ } 11+ handle /.well-known/jwks.json { 12+ reverse_proxy localhost:3000 13+ } 714 8- # AppView XRPC endpoints 9- reverse_proxy /xrpc/* localhost:3000 10- 11- # OAuth endpoints 12- reverse_proxy /oauth/* localhost:3000 13- 14- # Client metadata + JWKS 15- reverse_proxy /oauth/client-metadata.json localhost:3000 16- reverse_proxy /.well-known/jwks.json localhost:3000 17- 18- # SSE events 19- reverse_proxy /xrpc/dev.cospan.sync.subscribeEvents localhost:3000 15+ # Frontend (SvelteKit) catches everything else 16+ handle { 17+ reverse_proxy localhost:3002 18+ } 2019 } 2120 2221 node.cospan.dev { 23- # Node XRPC endpoints 24- reverse_proxy /xrpc/* localhost:3001 25- 22+ handle /xrpc/* { 23+ reverse_proxy localhost:3001 24+ } 2625 # Git smart HTTP protocol 27- reverse_proxy /*/info/refs localhost:3001 28- reverse_proxy /*/git-upload-pack localhost:3001 29- reverse_proxy /*/git-receive-pack localhost:3001 26+ handle { 27+ reverse_proxy localhost:3001 28+ } 3029 }