I also added transparent, without /monitrr/, and header_upstream X-Forwarded-Host {host}. I get a 404 file not found from nginx which is running in the container.
The developer provides an nginx config, but has no Caddy experience. Hoping someone here can help me translate the below into a working Caddy config.
The path to index.ph inside the docker container is ./config/www/monitorr/index.php. That directory is inside the container and the root for Caddy is outside the container (C:\Users\UserName\Documents\caddy\www). Not sure if I somehow how to link the 2 together, but I think that is the issue. Caddy does not know how to get to the index.php file as the root paths between the 2 are disjointed.
You don’t need FastCGI, or even site files. The docker container handles everything you need. You just want to put Caddy in front as a TLS terminating reverse proxy.
From my short testing, Monitorr is exceptionally friendly to subfolders. Just proxy from a subfolder directly to it, and it will work just fine, e.g. proxy /monitorr http://monitorr:80 should suffice.
If you DO want FastCGI (i.e., you want Caddy to serve Monitorr directly without running it in another container), you don’t want a proxy at all, just a volume mount for the site files inside the Caddy container.
I looked at my config and I am essentially doing what you are. It then dawned on me when I ran Monitorr it complained about the length of the folder structure so I moved it and never updated the mount volume. Updating my Docker mount point made a world of difference LOL. Thanks for the help!