I have a site set up with caddy that serves a react app. But the proxy part of it doesn't seem to be forwarding requests to the other docker container. It still shows me the react page on example.com/api
.
My caddyfile:
example.com {
gzip
root /app/build # directory of public pages # Single-page react app
proxy /staticfiles django:8000 {
transparent
}
proxy /api django:8000 {
transparent
}
}