2024-04-15, 10:58 PM
Hey everyone, I'm having some trouble getting jellyfin to correctly register client IPs. I currently have it partially behind cloudflare for the sign-in etc, so html stuff only and no TOS issues. I am also reverse proxying through Caddy.
Currently I have caddy built with the cloudflare trusted_proxies module and therefore have this directive in my config:
in my request logs for caddy I have the following, where remote_ip is a cloudflare ip, and all other entries are my true IP.
handled request {"request": {
Though the requests look like this, in Jellyfin's UI I am still seeing cloudflare addresses attached to user activity. Jellyfin and Caddy are running on the same debian machine.
I'm still not sure I entirely understand the "known proxies" configuration option in jellyfin. I'm hoping I wouldn't have to list the cloudflare proxies as this is 20 megabytes of text and the codebase suggests comparing these searches through a list. I've tried adding what should be my Caddy IP as jellyfin sees it (127.0.0.1) but this hasn't worked.
Thanks so much for any help.
Currently I have caddy built with the cloudflare trusted_proxies module and therefore have this directive in my config:
{
servers {
trusted_proxies cloudflare {
interval 12h
timeout 15s
}
}
}
jellyfin.domain.com {
reverse_proxy 127.0.0.1:8096
}
in my request logs for caddy I have the following, where remote_ip is a cloudflare ip, and all other entries are my true IP.
handled request {"request": {
"remote_ip": "100.100.100.100",
"client_ip": "50.50.50.50",
"X-Forwarded-For": ["50.50.50.50"],
"Cf-Connecting-Ip": ["50.50.50.50"],
Though the requests look like this, in Jellyfin's UI I am still seeing cloudflare addresses attached to user activity. Jellyfin and Caddy are running on the same debian machine.
I'm still not sure I entirely understand the "known proxies" configuration option in jellyfin. I'm hoping I wouldn't have to list the cloudflare proxies as this is 20 megabytes of text and the codebase suggests comparing these searches through a list. I've tried adding what should be my Caddy IP as jellyfin sees it (127.0.0.1) but this hasn't worked.
Thanks so much for any help.