2025-05-17, 07:43 PM
Hello
I have setup jellyfin behind caddy reverse proxy for external access and it works great. However, all users are shown the docker network ip (172.17.0.1) and not the actual ip. I have put the same IP in the known proxies setting but it's still not showing actual ip. Here is the Caddyfile section of jellyfin
}
jellyfin.domain.com {
reverse_proxy 192.168.1.x:8096
}
Here is the logs from caddy
{"level":"error","ts":1747510332.4433181,"logger":"http.log.error","msg":"dial tcp 192.168.1.x:8096: connect: connection refused","request":{"remote_ip":"172.17.0.1","remote_port":"51466","client_ip":"172.17.0.1","proto":"HTTP/2.0","method":"GET","host":"jellyfin.domain.com","uri":"/ScheduledTasks?IsEnabled=true","headers":{"Authorization":["REDACTED"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36"],"Accept":["application/json"],"Sec-Ch-Ua":["\"Chromium\";v=\"136\", \"Google Chrome\";v=\"136\", \"Not.A/Brand\";v=\"99\""],"Sec-Fetch-Site":["same-origin"],"Dnt":["1"],"Sec-Fetch-Mode":["cors"],"Accept-Language":["en-US,en;q=0.9"],"Accept-Encoding":["gzip, deflate, br, zstd"],"Priority":["u=1, i"],"Sec-Ch-Ua-Platform":["\"Windows\""],"Sec-Ch-Ua-Mobile":["?0"],"Sec-Fetch-Dest":["empty"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"h2","server_name":" jellyfin.domain.com"}},"duration":0.000554603,"status":502,"err_id":"866vwhqnp","err_trace":"reverseproxy.statusError (reverseproxy.go:1390)"}
I have setup jellyfin behind caddy reverse proxy for external access and it works great. However, all users are shown the docker network ip (172.17.0.1) and not the actual ip. I have put the same IP in the known proxies setting but it's still not showing actual ip. Here is the Caddyfile section of jellyfin
}
jellyfin.domain.com {
reverse_proxy 192.168.1.x:8096
}
Here is the logs from caddy
{"level":"error","ts":1747510332.4433181,"logger":"http.log.error","msg":"dial tcp 192.168.1.x:8096: connect: connection refused","request":{"remote_ip":"172.17.0.1","remote_port":"51466","client_ip":"172.17.0.1","proto":"HTTP/2.0","method":"GET","host":"jellyfin.domain.com","uri":"/ScheduledTasks?IsEnabled=true","headers":{"Authorization":["REDACTED"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36"],"Accept":["application/json"],"Sec-Ch-Ua":["\"Chromium\";v=\"136\", \"Google Chrome\";v=\"136\", \"Not.A/Brand\";v=\"99\""],"Sec-Fetch-Site":["same-origin"],"Dnt":["1"],"Sec-Fetch-Mode":["cors"],"Accept-Language":["en-US,en;q=0.9"],"Accept-Encoding":["gzip, deflate, br, zstd"],"Priority":["u=1, i"],"Sec-Ch-Ua-Platform":["\"Windows\""],"Sec-Ch-Ua-Mobile":["?0"],"Sec-Fetch-Dest":["empty"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"h2","server_name":" jellyfin.domain.com"}},"duration":0.000554603,"status":502,"err_id":"866vwhqnp","err_trace":"reverseproxy.statusError (reverseproxy.go:1390)"}