From 6d5e28dd7b1347d4f0bc4685cc93cf52a5347e62 Mon Sep 17 00:00:00 2001 From: GilbN <24592972+gilbN@users.noreply.github.com> Date: Wed, 21 Oct 2020 20:05:31 +0200 Subject: [PATCH] Updated qBittorrent (markdown) --- qBittorrent.md | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/qBittorrent.md b/qBittorrent.md index 8a1dc2b..42b3c51 100644 --- a/qBittorrent.md +++ b/qBittorrent.md @@ -5,13 +5,30 @@ Custom [qBitorrent](https://github.com/qbittorrent/qBittorrent) CSS. ![](https://raw.githubusercontent.com/gilbN/theme.park/master/Screenshots/qbittorrent/qbittorrent.gif) ### NOTE: -You need to change or remove the CSP header. +As Qbittorrent will block the theme with its content security policy you need to change or remove the CSP header. + +Add this in your reverse proxy to remove the headers: -Add this in your reverse proxy: ```nginx proxy_hide_header "x-webkit-csp"; proxy_hide_header "content-security-policy"; ``` +Nginx Example: + +```nginx +location /qbt{ + proxy_pass http://localhost:8080/qbt; + include /config/nginx/proxy.conf; + proxy_hide_header "x-webkit-csp"; + proxy_hide_header "content-security-policy"; + proxy_set_header Accept-Encoding ""; + sub_filter + '' + ' + '; + sub_filter_once on; + } +``` ``` https://gilbn.github.io/theme.park/CSS/themes/qbittorrent/XXX.css