2025-09-01, 04:40 PM
(2025-09-01, 03:51 PM)Eri Cka Wrote: Hello,
I use NPM and I can't have the real IP of clients even by adding this in the configuration
"proxy_set_header X-Forwarded-For $remote_addr;"
I also added the IP address of the Nginx server in the jellyfin configuration
Google the following command:
Code:
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
I am guessing this is what you meant, but Jellyfin needs to trust the reverse proxy to use the X-Forwarded-For header. In the Jellyfin admin dashboard under Networking, you can add trusted proxy IPs. Only requests from those IPs will have their X-Forwarded-For header used for the client IP.
Debian 13
11th Gen Intel Core i9-11900KF @ 3.50GHz
Intel Arc [B580] Battlemage G21 (BMG-G21)
Corsair 64gb 2133mhz (2x32)
AI818 M.2 PCIe Gen4 SSD (1TB)
Ubiquiti UNAS Pro (RAID5 7x24TB = 144TB)