Add Dashy upstream configuration and update Nginx server block for redirects
This commit is contained in:
parent
c56c154635
commit
edf465f0e6
@ -38,9 +38,6 @@ server {
|
||||
proxy_set_header Connection $connection_upgrade;
|
||||
proxy_set_header X-Forwarded-Host $host;
|
||||
proxy_set_header X-Forwarded-Prefix /jellyfin;
|
||||
|
||||
# (Optional) if you see odd redirects, uncomment:
|
||||
# proxy_redirect off;
|
||||
}
|
||||
|
||||
# ---- Jellyfin at /anime/ ----
|
||||
@ -58,9 +55,6 @@ server {
|
||||
proxy_set_header Connection $connection_upgrade;
|
||||
proxy_set_header X-Forwarded-Host $host;
|
||||
proxy_set_header X-Forwarded-Prefix /anime;
|
||||
|
||||
# (Optional) if you see odd redirects, uncomment:
|
||||
# proxy_redirect off;
|
||||
}
|
||||
|
||||
# ---- Pi-hole admin at /admin/ ----
|
||||
@ -143,4 +137,16 @@ server {
|
||||
proxy_set_header X-Forwarded-Host $host;
|
||||
proxy_set_header X-Forwarded-Prefix /jd-bridge;
|
||||
}
|
||||
|
||||
# ---- Dashy at /dashy/ ----
|
||||
location = /dashy {
|
||||
return 302 /dashy/;
|
||||
}
|
||||
location /dashy/ {
|
||||
proxy_pass http://dashy_upstream/;
|
||||
include snippets/proxy-common.conf;
|
||||
|
||||
proxy_set_header X-Forwarded-Host $host;
|
||||
proxy_set_header X-Forwarded-Prefix /dashy;
|
||||
}
|
||||
}
|
||||
|
||||
@ -29,3 +29,8 @@ upstream djellyfin_upstream {
|
||||
server 127.0.0.1:8096;
|
||||
keepalive 32;
|
||||
}
|
||||
|
||||
upstream dashy_upstream {
|
||||
server 127.0.0.1:8084;
|
||||
keepalive 16;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user