如果在nat机器上运行docker版的qb,有可能会遇到unauthorized的问题,以下是解决方案:
更新:
我刚刚遗漏了一步,就是修改qBittorrent.conf这个文件的时候,先停止这个container
So I found the solution. its 2 fold.
First. Go to your qBittorrent.conf file, this is located in /config/qbittorrent/ location. Change the following from
WebUI\HostHeaderValidation=true
to
WebUI\HostHeaderValidation=false
this will allow you to bypass unauthorized issue that might happen in general, not through a home dash board application.
the 2nd fix is to solve the issue of ‘unauthorized’ when opening through a dashboard app, such as homarr, heimdall, & fenrus. Line 59, change from true to false
WebUI\CSRFProtection=true
WebUI\CSRFProtection=false
I’ve seen reports on various posts/forums scattered across the interwebs that the error can be reproduced with a reverse proxy as well. can’t confirm myself… but regardless, when editing this file, i’d first stop the container, edit the file, then restart the container.
该方法来源于:
https://discourse.linuxserver.io/t/opening-qbittorrent-webui-via-dashboard-app-is-unauthorized-mismatched-ips/7363/6
文章评论