Add non-auth locations for qbittorrent

This commit is contained in:
Eric Nemchik 2019-07-22 08:49:53 -05:00
parent 4aeac671a1
commit 8756b187d6
2 changed files with 110 additions and 0 deletions

View file

@ -30,4 +30,59 @@ server {
proxy_set_header Referer '';
proxy_set_header Host $upstream_qbittorrent:8080;
}
location ^~ /qbittorrent/api {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_qbittorrent qbittorrent;
rewrite /qbittorrent(.*) $1 break;
proxy_pass http://$upstream_qbittorrent:8080;
proxy_set_header Referer '';
proxy_set_header Host $upstream_qbittorrent:8080;
}
location ^~ /qbittorrent/command {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_qbittorrent qbittorrent;
rewrite /qbittorrent(.*) $1 break;
proxy_pass http://$upstream_qbittorrent:8080;
proxy_set_header Referer '';
proxy_set_header Host $upstream_qbittorrent:8080;
}
location ^~ /qbittorrent/query {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_qbittorrent qbittorrent;
rewrite /qbittorrent(.*) $1 break;
proxy_pass http://$upstream_qbittorrent:8080;
proxy_set_header Referer '';
proxy_set_header Host $upstream_qbittorrent:8080;
}
location ^~ /qbittorrent/login {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_qbittorrent qbittorrent;
rewrite /qbittorrent(.*) $1 break;
proxy_pass http://$upstream_qbittorrent:8080;
proxy_set_header Referer '';
proxy_set_header Host $upstream_qbittorrent:8080;
}
location ^~ /qbittorrent/sync {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_qbittorrent qbittorrent;
rewrite /qbittorrent(.*) $1 break;
proxy_pass http://$upstream_qbittorrent:8080;
proxy_set_header Referer '';
proxy_set_header Host $upstream_qbittorrent:8080;
}
}

View file

@ -21,3 +21,58 @@ location ^~ /qbittorrent/ {
proxy_set_header Referer '';
proxy_set_header Host $upstream_qbittorrent:8080;
}
location ^~ /qbittorrent/api {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_qbittorrent qbittorrent;
rewrite /qbittorrent(.*) $1 break;
proxy_pass http://$upstream_qbittorrent:8080;
proxy_set_header Referer '';
proxy_set_header Host $upstream_qbittorrent:8080;
}
location ^~ /qbittorrent/command {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_qbittorrent qbittorrent;
rewrite /qbittorrent(.*) $1 break;
proxy_pass http://$upstream_qbittorrent:8080;
proxy_set_header Referer '';
proxy_set_header Host $upstream_qbittorrent:8080;
}
location ^~ /qbittorrent/query {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_qbittorrent qbittorrent;
rewrite /qbittorrent(.*) $1 break;
proxy_pass http://$upstream_qbittorrent:8080;
proxy_set_header Referer '';
proxy_set_header Host $upstream_qbittorrent:8080;
}
location ^~ /qbittorrent/login {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_qbittorrent qbittorrent;
rewrite /qbittorrent(.*) $1 break;
proxy_pass http://$upstream_qbittorrent:8080;
proxy_set_header Referer '';
proxy_set_header Host $upstream_qbittorrent:8080;
}
location ^~ /qbittorrent/sync {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_qbittorrent qbittorrent;
rewrite /qbittorrent(.*) $1 break;
proxy_pass http://$upstream_qbittorrent:8080;
proxy_set_header Referer '';
proxy_set_header Host $upstream_qbittorrent:8080;
}