From 9bfa2894bb55b0c85de3939ad071cc1a72100dc1 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 31 Jan 2026 08:41:22 +0200 Subject: fix(relayd): add X-Forwarded-Host header for Jellyfin reverse proxy Amp-Thread-ID: https://ampcode.com/threads/T-019c12b1-e861-773b-8f74-64b6c2255a5f Co-authored-by: Amp --- frontends/etc/relayd.conf.tpl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'frontends/etc') diff --git a/frontends/etc/relayd.conf.tpl b/frontends/etc/relayd.conf.tpl index 9fcb169..143c0d5 100644 --- a/frontends/etc/relayd.conf.tpl +++ b/frontends/etc/relayd.conf.tpl @@ -47,6 +47,7 @@ http protocol "https" { match request header set "X-Forwarded-For" value "$REMOTE_ADDR" match request header set "X-Forwarded-Proto" value "https" + match request header set "X-Forwarded-Host" value "$HTTP_HOST" # WebSocket headers - passed through for WebSocket connections pass header "Connection" @@ -105,6 +106,7 @@ relay "https6" { } # Jellyfin alternative ports for Android app discovery +# Use the same "https" protocol to get X-Forwarded headers relay "jellyfin-8096-ipv4" { listen on <%= $vio0_ip %> port 8096 tls protocol "https" -- cgit v1.2.3