From edf465f0e604f08918daf21b157b1252ded8ac62 Mon Sep 17 00:00:00 2001 From: Nik Afiq Date: Sat, 24 Jan 2026 20:25:53 +0900 Subject: [PATCH] Add Dashy upstream configuration and update Nginx server block for redirects --- nik4nao.home.arpa.conf | 18 ++++++++++++------ upstreams.conf | 5 +++++ 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/nik4nao.home.arpa.conf b/nik4nao.home.arpa.conf index 3aafc88..79f3805 100644 --- a/nik4nao.home.arpa.conf +++ b/nik4nao.home.arpa.conf @@ -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; + } } diff --git a/upstreams.conf b/upstreams.conf index 7ad3f86..3b1578b 100644 --- a/upstreams.conf +++ b/upstreams.conf @@ -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; +}