Please upgrade to Caddy v2.3.0, you’re using a version of Caddy that’s more than a year old at this point!
This will only apply authentication to exactly /
, i.e. the root of your site and nothing else. Remove the /
to apply it to everything.
You can use the shorter syntax:
reverse_proxy /grafana/* grafana:3000
After upgrading to v2.3.0, you can use handle_path
which shortens this:
handle_path /influxdb/* {
reverse_proxy influxdb:8086
}
As for your problem proxying certain services, you’re running into this problem; many apps weren’t designed to run in subpaths, and unless they expose configuration to make it work, never will. The solution is to use subdomains for those services, or in your case use a different port to proxy them with Caddy.