qBittorrent Web UI -- Reverse Proxy Help

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:

  1. Continue with current subfolder setup and endure possible strange/unintended behaviour
  2. Give qBittorrent its own subdomain
  3. 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

1 Like