Updated anime proxy to use djellyfin upstream and added qBittorrent configuration
This commit is contained in:
parent
8aa4c926f5
commit
ce7dc52855
@ -39,7 +39,7 @@ server {
|
||||
location = /anime { return 302 /anime/; } # enforce trailing slash
|
||||
|
||||
location /anime/ {
|
||||
proxy_pass http://anime_upstream/; # uses upstream (or use the raw URL)
|
||||
proxy_pass http://djellyfin_upstream/; # uses upstream (or use the raw URL)
|
||||
proxy_next_upstream error timeout invalid_header http_502 http_503 http_504;
|
||||
include snippets/proxy-common.conf;
|
||||
|
||||
@ -82,8 +82,19 @@ server {
|
||||
# For Vite HMR / websockets
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection $connection_upgrade;
|
||||
|
||||
# Uncomment if you see odd redirects
|
||||
# proxy_redirect off;
|
||||
}
|
||||
|
||||
# ---- qBittorrent at /qbt/ ----
|
||||
location = /qbt { return 302 /qbt/; }
|
||||
|
||||
location ^~ /qbt/ {
|
||||
proxy_pass http://qbt_upstream;
|
||||
include snippets/proxy-common.conf;
|
||||
|
||||
proxy_set_header X-Forwarded-Host $host;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-Forwarded-Prefix /qbt;
|
||||
|
||||
proxy_redirect off;
|
||||
}
|
||||
}
|
||||
|
||||
@ -14,8 +14,13 @@ upstream watchparty_upstream {
|
||||
keepalive 16;
|
||||
}
|
||||
|
||||
upstream anime_upstream {
|
||||
server 192.168.7.78:8096 max_fails=2 fail_timeout=3s;
|
||||
server 192.168.7.7:8096 backup;
|
||||
keepalive 16;
|
||||
|
||||
upstream qbt_upstream {
|
||||
server 127.0.0.1:8082;
|
||||
keepalive 32;
|
||||
}
|
||||
|
||||
upstream djellyfin_upstream {
|
||||
server 127.0.0.1:8096;
|
||||
keepalive 32;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user