diff --git a/qBittorrent.md b/qBittorrent.md index 42b3c51..1ea0d72 100644 --- a/qBittorrent.md +++ b/qBittorrent.md @@ -13,20 +13,23 @@ Add this in your reverse proxy to remove the headers: proxy_hide_header "x-webkit-csp"; proxy_hide_header "content-security-policy"; ``` -Nginx Example: +[Nginx variable example](https://github.com/gilbN/theme.park/wiki/Setup#nginx-variable): ```nginx -location /qbt{ - proxy_pass http://localhost:8080/qbt; - include /config/nginx/proxy.conf; +location /qbt/ { + proxy_pass http://192.168.1.34:8080/; + proxy_set_header X-Forwarded-Host $server_name:$server_port; + proxy_hide_header Referer; + proxy_hide_header Origin; + proxy_set_header Referer ''; + proxy_set_header Origin ''; + add_header X-Frame-Options "SAMEORIGIN"; + + set $app qbittorrent; + include /config/nginx/theme-park.conf; + proxy_hide_header "x-webkit-csp"; proxy_hide_header "content-security-policy"; - proxy_set_header Accept-Encoding ""; - sub_filter - '' - ' - '; - sub_filter_once on; } ```