qbittorrent / qBittorrent

qBittorrent BitTorrent client
https://www.qbittorrent.org
Other
27.47k stars 3.9k forks source link

WebUI: reverse proxy breakages #20837

Open Dialgatrainer02 opened 4 months ago

Dialgatrainer02 commented 4 months ago

qBittorrent & operating system versions

qbittorrent: 4.6.4 os: docker image hosted on alpine vm

What is the problem?

when behind a reverse proxy most functionality of the web gui seems to break i can exit and log out but most interactivity is broken and torrents don't appear

Steps to reproduce

  1. configure qbittorrent
  2. configure nginx reverse proxy
  3. access qbit on lan and behing proxy
  4. see errors

Additional context

image image

Log(s) & preferences file(s)

image 192.168.0.200 is my reverse proxi have enabled trusted proxies and added 192.168.0.200 to it and still get the broken barely functional web ui

location / {
    proxy_pass              http://192.168.0.203:8080/;
    proxy_set_header        X-Forwarded-Host        $server_name:$server_port;
    proxy_hide_header       Referer;
    proxy_hide_header       Origin;
    proxy_set_header        Referer                 '';
    proxy_set_header        Origin                  '';
    add_header              X-Frame-Options         "SAMEORIGIN";
}

this is in npm's custom config

toviszsolt commented 4 months ago

@Dialgatrainer02

I have it set up the same way and no errors.

Perhaps you could also take a screenshot of the dev console to find out more.

Dialgatrainer02 commented 4 months ago

I'll be home ina few days I'll send ss of the console as well as double check asset caching is off

luzpaz commented 1 month ago

@Dialgatrainer02 :point_up_2: