• 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 Off Topic Self-hosting & Homelabs debian13+apache+jellyfin

     
    • 0 Vote(s) - 0 Average

    debian13+apache+jellyfin

    qbwdp
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2025 Aug
    Reputation: 0
    Country:United States
    #1
    11 hours ago
    I have signed certs and a registered domain. In my apache i have:

           ProxyPass /socket/ wsConfused-face/loc alhost:8096/socket/
           ProxyPassReverse /socket/ wsConfused-face/lo calhost:8096/socket/
           ProxyPass / http://localhost:8096/
           ProxyPassReverse / http://localhost:8096/


    I can go to any browser of computer, android phone, apple phone. type 
    https://my domain.com  and it takes me to my jellyfin server and i can log in fine.

    When i use the jellyfin app on android and put in the above address it just crashes.
    Apple Jellyfin app just says in red "Could not connect to server".

    What might I be doing wrong here?

    I do not wish to open up 8920 port on my firewall and connect that way. 443 is working fine for me coming in and then proxypass is doing the job to pass traffic to the local 8096. Why are the phone apps not working with this setup?


    bitmap
    Offline

    Community Moderator

    Posts: 993
    Threads: 9
    Joined: 2023 Jul
    Reputation: 30
    #2
    11 hours ago
    Can you specify your local IP rather than using localhost? I use nginx, so not much help on Apache, but my setup works just fine on the Android and iOS apps.
    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]
    qbwdp
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2025 Aug
    Reputation: 0
    Country:United States
    #3
    11 hours ago
    :%s/localhost/10.10.10.10/g

    changed localhost to my servers' ip, restarted apache. Again, all browsers on computer, android/apple phone work. But the jellyfin app on android crashed as soon as i put https://mydomian.com and hit connect. The apple jellyfin app just says Could not connect to server.
    qbwdp
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2025 Aug
    Reputation: 0
    Country:United States
    #4
    10 hours ago (This post was last modified: 10 hours ago by qbwdp. Edited 1 time in total.)
    Additional
    The access log of apache does not move when i try the android app, it just crashes when i hit connect with the address. While the apple jellyfin app does register this in the apache access log:
    175.61.2.25 - - [18/Aug/2025:19:37:03 -0500] "GET /system/info/public HTTP/1.1" 302 3284 "-" "Jellyfin/1.6.1.0 CFNetwork/3826.600.41 Darwin/24.6.0"
    175.61.2.25 - - [18/Aug/2025:19:37:20 -0500] "GET /system/info/public HTTP/1.1" 302 3284 "-" "Jellyfin/1.6.1.0 CFNetwork/3826.600.41 Darwin/24.6.0"
    bitmap
    Offline

    Community Moderator

    Posts: 993
    Threads: 9
    Joined: 2023 Jul
    Reputation: 30
    #5
    7 hours ago
    Code:
    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 192.168.1.3;
            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 192.168.1.3;
            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;
        }

        location /Users/ForgotPassword {
            include /config/nginx/proxy.conf;
            include /config/nginx/resolver.conf;
            set $upstream_app 192.168.1.3;
            set $upstream_port 8096;
            set $upstream_proto http;
            proxy_pass $upstream_proto://$upstream_app:$upstream_port/Users/ForgotPassword;
            
            proxy_set_header X-Forwarded-For 192.168.1.199;
        }

        location /Users/ForgotPassword/Pin {
            include /config/nginx/proxy.conf;
            include /config/nginx/resolver.conf;
            set $upstream_app 192.168.1.3;
            set $upstream_port 8096;
            set $upstream_proto http;
            proxy_pass $upstream_proto://$upstream_app:$upstream_port/Users/ForgotPassword/Pin;
            
            proxy_set_header X-Forwarded-For 192.168.1.199;
        }
    }

    server {
        listen 80;
        listen [::]:80;
        server_name jellyfin.bitmapserv.org;
        return 301 https://$host$request_uri;
    }

    This is my full nginx config. A 302 is a temporary redirect AFAIK, which you should not be getting.
    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)


    • 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