Updated qBittorrent (markdown)
parent
529949536d
commit
6d5e28dd7b
@ -5,13 +5,30 @@ Custom [qBitorrent](https://github.com/qbittorrent/qBittorrent) CSS.
|
|||||||

|

|
||||||
|
|
||||||
### NOTE:
|
### 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
|
```nginx
|
||||||
proxy_hide_header "x-webkit-csp";
|
proxy_hide_header "x-webkit-csp";
|
||||||
proxy_hide_header "content-security-policy";
|
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
|
||||||
|
'</head>'
|
||||||
|
'<link rel="stylesheet" type="text/css" href="https://gilbn.github.io/theme.park/CSS/themes/qbittorrent/aquamarine.css">
|
||||||
|
</head>';
|
||||||
|
sub_filter_once on;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
```
|
```
|
||||||
https://gilbn.github.io/theme.park/CSS/themes/qbittorrent/XXX.css
|
https://gilbn.github.io/theme.park/CSS/themes/qbittorrent/XXX.css
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user