qBittorrent + caddy breaking some css

1. Output of caddy version:

v2.6.1 h1:EDqo59TyYWhXQnfde93Mmv4FJfYe00dO60zMiEt+pzo=
(built with cloudflare module)

2. How I run Caddy:

sudo podman run -d -p 80:80 -p 443:443 -p 443:443/udp -v $PWD/Caddyfile:/etc/caddy/Caddyfile:Z -v caddy_data:/data -v caddy_config:/config --name=caddy localhost/caddy:cloudflare

a. System environment:

Ubuntu 22.04 LTS + podman 3.4.4

b. Command:

caddy run --config /etc/caddy/Caddyfile --adapter caddyfile

c. Service/unit/compose file:


Paste full file contents here.
Make sure backticks stay on their own lines,
and the post looks nice in the preview pane. -->

d. My complete Caddy config:

@qbittorrent host downloads.website.tld
    handle @qbittorrent {
        reverse_proxy host.containers.internal:5080

3. The problem I’m having:

The list of all torrents in qbittorrent is blank, the rest of the UI is there, but actual list of torrents is empty. When accessing qbittorrent by ip:port directly, the full UI works, so I suspect it’s a CaddyFile issue.

I say some settings for caddy around the internet such as:

       header_upstream X-Forwarded-Host {host}:9091
	header_upstream Origin ''
	header_upstream Referer ''

but not sure where to place them. In the past this wasn’t an issue, so not sure what happened

6. Links to relevant resources:

“In the past” as in “before I updated Caddy” or something else?

Those need to be nested within the reverse_proxy directive like so:

reverse_proxy host.containers.internal:5080 {
	header_up -Origin
	header_up -Referer

Though I am not sure if that fixes your problem - but that would be the correct syntax at least :woman_shrugging:

1 Like

This topic was automatically closed after 30 days. New replies are no longer allowed.