[SOLVED] Cadddy v2 reverse proxy

It’s unclear to me where /repo is coming from. That said, in Caddy v2, path matchers are exact, so you need to use /api/* for your reverse_proxy to handle any API path.

It looks like your service at 192.168.1.2:8001 is returning the Location header triggering a redirect. Best check that app or its configuration.