• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting Networking & Access SOLVED: Can't access Jellyfin with my subdomain (NGINX)

     
    • 0 Vote(s) - 0 Average

    SOLVED: Can't access Jellyfin with my subdomain (NGINX)

    bitmap
    Online

    Community Moderator

    Posts: 773
    Threads: 9
    Joined: 2023 Jul
    Reputation: 24
    #4
    2025-02-04, 03:45 PM (This post was last modified: 2025-02-04, 03:48 PM by bitmap. Edited 1 time in total.)
    From the config:

    Code:
    location / {
            # Proxy main Jellyfin traffic
            proxy_pass http://$jellyfin:8096;
            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;

            # Disable buffering when the nginx proxy gets very resource heavy upon streaming
            proxy_buffering off;
        }

    It's a location block for the root. You also don't seem to be listening on 443 in the main server block, which might be why you're not getting the right service -- it can't hear the doorbell.

    Here's my config, which is only slightly different from the example in the docs:

    Code:
    server {
        listen 80;
        server_name jellyfin.*;

        # Uncomment to redirect HTTP to HTTPS
        return 301 https://$host$request_uri;
    }

    server {
        listen 443 ssl;
        #http2 on;

        server_name jellyfin.*;

        include /config/nginx/ssl.conf;

        client_max_body_size 60M;

        set $jellyfin 192.168.1.3;
        
        add_header X-XSS-Protection "0"; # Do NOT enable. This is obsolete/dangerous
        add_header Origin-Agent-Cluster "?1" always;

        location / {
            include /config/nginx/proxy.conf;
            include /config/nginx/resolver.conf;
            set $upstream_app $jellyfin;
            set $upstream_port 8096;
            set $upstream_proto http;
            proxy_pass $upstream_proto://$upstream_app:$upstream_port;

            proxy_set_header Range $http_range;
            proxy_set_header If-Range $http_if_range;
            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;

            # Disable buffering when the nginx proxy gets very resource heavy upon streaming
            proxy_buffering off;
        }
        

        location ~ (/jellyfin)?/socket {
            include /config/nginx/proxy.conf;
            include /config/nginx/resolver.conf;
            set $upstream_app $jellyfin;
            set $upstream_port 8096;
            set $upstream_proto http;
            proxy_pass $upstream_proto://$upstream_app:$upstream_port;
            
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection "upgrade";
            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;
        }
    }
    Jellyfin 10.10.7 LSIO Docker | Ubuntu 24.04 LTS | i7-13700K | Arc A380 6 GB | 64 GB RAM | 79 TB Storage

    [Image: AIL4fc84QG6uSnTDEZiCCtosg7uAA8x9j1myFaFs...qL0Q=w2400]
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    Messages In This Thread
    Can't access Jellyfin with my subdomain (NGINX) - by CelianGdfrd - 2025-02-04, 02:47 PM
    RE: Can't access Jellyfin with my subdomain (NGINX) - by bitmap - 2025-02-04, 03:37 PM
    RE: Can't access Jellyfin with my subdomain (NGINX) - by CelianGdfrd - 2025-02-04, 03:42 PM
    RE: Can't access Jellyfin with my subdomain (NGINX) - by bitmap - 2025-02-04, 03:45 PM
    RE: Can't access Jellyfin with my subdomain (NGINX) - by CelianGdfrd - 2025-02-04, 03:50 PM

    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode