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