npm反代qbittorrent提示Unauthorized的解决方法

使用docker搭建的qbittorrent(当前版本5.0.4),能正常通过端口访问,但如果只expose端口,使用npm反代,默认设置下会显示Unauthorized。

直接在npm添加以下配置即可

proxy_set_header   X-Forwarded-Host   $http_host;
proxy_set_header   X-Forwarded-For    $remote_addr;
proxy_cookie_path  /                  "/; Secure";

图片[1]-npm反代qbittorrent提示Unauthorized的解决方法-THsInk

另外,可以检查qbit配置中是否限制了域名,默认没有设置:

./config/qBittorrent/qBittorrent.conf 中

[Preferences]
WebUI\ServerDomains=*

参考

https://github.com/qbittorrent/qBittorrent/wiki/NGINX-Reverse-Proxy-for-Web-UI

© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!无需注册,过短或乱码评论会被屏蔽。
提交
头像

昵称

取消
昵称表情代码图片快捷回复

    暂无评论内容