Hi @samantonioli, welcome to the Caddy community. I’ve edited your post to put code blocks (triple backtick, ```) around your configs to preserve formatting.
My understanding is that qBittorrent doesn’t have base URL support (going off this issue). That means you’ve got three options:
- Continue with current subfolder setup and endure possible strange/unintended behaviour
- Give qBittorrent its own subdomain
- Have a look into
http.filter
and maybe this thread
However, to answer your translation question, here’s what the equivalent proxy
directive block would look like in context:
proxy /qbittorrent localhost:9091 {
header_upstream X-Forwarded-Host {host}:9091
header_upstream Origin ''
header_upstream Referer ''
}
https://caddyserver.com/docs/proxy
https://caddyserver.com/docs/placeholders
https://caddyserver.com/docs/http.filter