Merge pull request #76 from nemchik/qbit

Add non-auth locations for qbittorrent
This commit is contained in:
aptalca 2019-07-22 15:43:57 -04:00 committed by GitHub
commit 5d406822d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 110 additions and 0 deletions

View file

@ -30,4 +30,59 @@ server {
proxy_set_header Referer ''; proxy_set_header Referer '';
proxy_set_header Host $upstream_qbittorrent:8080; 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 Referer '';
proxy_set_header Host $upstream_qbittorrent:8080; 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;
}