...
 
Commits (3)
......@@ -31,7 +31,17 @@ server {
}
location ~ (/jackett)?/(api|dl) {
location ~ (/jackett)?/api {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_app jackett;
set $upstream_port 9117;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
}
location ~ (/jackett)?/dl {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_app jackett;
......
# first go into jackett settings, set the URL Base to /jackett and restart the jackett container
location /jackett {
location ^~ /jackett {
# enable the next two lines for http auth
#auth_basic "Restricted";
#auth_basic_user_file /config/nginx/.htpasswd;
......@@ -18,7 +18,17 @@ location /jackett {
}
location ~ /jackett/(api|dl) {
location ^~ /jackett/api {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_app jackett;
set $upstream_port 9117;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
}
location ^~ /jackett/dl {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_app jackett;
......
......@@ -33,7 +33,7 @@ server {
proxy_set_header Host $upstream_app:8080;
}
location ^~ /qbittorrent/api {
location ~ (/qbittorrent)?/api {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_app qbittorrent;
......@@ -47,7 +47,7 @@ server {
proxy_set_header Host $upstream_app:8080;
}
location ^~ /qbittorrent/command {
location ~ (/qbittorrent)?/command {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_app qbittorrent;
......@@ -61,7 +61,7 @@ server {
proxy_set_header Host $upstream_app:8080;
}
location ^~ /qbittorrent/query {
location ~ (/qbittorrent)?/query {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_app qbittorrent;
......@@ -75,7 +75,7 @@ server {
proxy_set_header Host $upstream_app:8080;
}
location ^~ /qbittorrent/login {
location ~ (/qbittorrent)?/login {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_app qbittorrent;
......@@ -89,7 +89,7 @@ server {
proxy_set_header Host $upstream_app:8080;
}
location ^~ /qbittorrent/sync {
location ~ (/qbittorrent)?/sync {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_app qbittorrent;
......