![]() |
x-forwarded-for IP for docker compose stack? - Printable Version +- Jellyfin Forum (https://forum.jellyfin.org) +-- Forum: Support (https://forum.jellyfin.org/f-support) +--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting) +--- Thread: x-forwarded-for IP for docker compose stack? (/t-x-forwarded-for-ip-for-docker-compose-stack) |
x-forwarded-for IP for docker compose stack? - fhireman - 2025-08-11 Hi there, I've been running jellyfin for about half a year now on my own server and recently port forwarded it so my parents can enjoy it as well. I've seen my internal Docker network IP pop up in the logs on the Jellyfin dashboard but not the actual external IP from my parents. Normally this would be the x-forwarded-for header that gets passed automatically through Caddy as a reverse proxy but I'm unsure how to tell Jellyfin to use this header IP instead of the Docker internal network one? My compose stack looks like this right now: Code: services: I saw that a lot of the logs that have IPs in them were in the /home/jellyfin/config dir so I assume I need to point my Fail2Ban jail to these logfiles to pick up on failed logins? Thanks in advance! RE: x-forwarded-for IP for docker compose stack? - bitmap - 2025-08-11 Add your docker IP to the known proxies, which should help. RE: x-forwarded-for IP for docker compose stack? - fhireman - 2025-08-12 Thanks, will try. Saw that it does require a baseURL to be set before it works but I'll try it out |