2026-01-02, 06:29 PM
Hello,
I am configuring Jellyfin behind Nginx as a reverse proxy. I followed the instructions for setting up from a subdomain, but in my Jellyfin logs all IP addresses are still shown as 127.0.0.1
My Nginx config:
The logs in question:
I am configuring Jellyfin behind Nginx as a reverse proxy. I followed the instructions for setting up from a subdomain, but in my Jellyfin logs all IP addresses are still shown as 127.0.0.1
My Nginx config:
Code:
upstream jellyfin {
server 127.0.0.1:8096;
}
# Other site configs / https redirect
server {
# Using port 8443 because my ISP restricts traffic on ports 80 and 443
listen 8443 ssl;
listen [::]:8443 ssl;
http2 on;
server_name <redacted>;
ssl_certificate <redacted>;
ssl_certificate_key <redacted>;
add_header Strict-Transport-Security 'max-age=63072000' always;
root <redacted>;
index 'index.html' 'index.htm';
client_max_body_size 20M;
add_header X-Content-Type-Options "nosniff";
#add_header Permissions-Policy "accelerometer=(), ambient-light-sensor=(), battery=(), bluetooth=(), camera=(), clipboard-read=(), display-capture=(), document-domain=(), encrypted-media=(), gamepad=(), geolocation=(), gyroscope=(), hid=(), idle-detection=(), interest-cohort=(), keyboard-map=(), local-fonts=(), magnetometer=(), microphone=(), payment=(), publickey-credentials-get=(), serial=(), sync-xhr=(), usb=(), xr-spatial-tracking=()" always;
add_header Content-Security-Policy "default-src https: data: blob: ; img-src 'self' https://* ; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' https://www.gstatic.com https://www.youtube.com blob:; worker-src 'self' blob:; connect-src 'self'; object-src 'none'; font-src 'self'";
add_header X-Robots-Tag "noindex, nofollow, nosnippet, noarchive";
location / {
proxy_pass http://jellyfin;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Protocol $scheme;
proxy_set_header X-Forwarded-Host $http_host;
proxy_buffering off;
}
location /socket {
proxy_pass http://jellyfin;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Protocol $scheme;
proxy_set_header X-Forwarded-Host $http_host;
}
}The logs in question:

