Skip to content

Commit

Permalink
update qb reverse proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
Aniverse committed Apr 23, 2018
1 parent b511f52 commit 7b2bb7e
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions conf/qbittorrent.conf
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
location /qb {
return 301 https://$host/qbittorrent/;
}
location ~ /qbittorrent/(?<url>.*) {
proxy_pass http://127.0.0.1:2017/$url;
proxy_set_header X-Forwarded-Host $host:$server_port;
proxy_hide_header Referer;
proxy_hide_header Origin;
proxy_set_header Referer '';
proxy_set_header Origin '';
add_header X-Frame-Options "SAMEORIGIN";
}

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

location /qbittorrent/ {
proxy_pass http://127.0.0.1:2017/;
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";
}

0 comments on commit 7b2bb7e

Please sign in to comment.