• 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 HTTPS via Cloudflare-Nginx-Jellyfin Question

     
    • 0 Vote(s) - 0 Average

    HTTPS via Cloudflare-Nginx-Jellyfin Question

    SammyD
    Offline

    Junior Member

    Posts: 6
    Threads: 1
    Joined: 2024 Jun
    Reputation: 0
    Country:United States
    #1
    2024-06-11, 07:37 PM
    Hello All,

    I'm looking for guidance on how to change my remote connection to HTTPS. I'm not a noob but I'm no expert either. I'm confused as to what needs to be done on each component (Cloudflare, Nginx, Jellyfin). I currently have the following HTTP connection working. My Nginx Proxy Manager is on it's own container and Jellyfin is in another container. You can get an SSL in Nginx and it also looks like Jellyfin also has SSL. Any help would be appreciated. Thanks.

    Cloudflare               Nginx Proxy Mgr (debian LXC)        Jellyfin (on another debian LXC)
    -----------------------------------------------------------------------------------------------------------------
    CNAME...                 Proxy Host...                                    Networking...
    jellyfin.xxx.com        Name: jellyfin.xxx.com                     HTTP Port: 8096
                                    Scheme: http                                   HTTPS: NOT ENABLED
                                    IP: 192.168.1.111                             HTTPS Port: 8920
                                    Port: 8096                                        SSL Cert Path: <blank>
                                    SSL: NONE                                       Cert Password: <blank>

    If I get an SSL in Nginx do I also need one in Jellyfin? 
    Does Jellyfin need to reference the Nginx SSL?
    What is Certbot and do I need this also?
    Confused!
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-06-11, 08:41 PM (This post was last modified: 2024-06-11, 08:41 PM by TheDreadPirate. Edited 1 time in total.)
    In cloudflare you should have an A and/or AAAA record for your domain.tld that points to your IP. Then you need a CNAME that is JUST the subdomain, like "jellyfin" and that points to your domain.tld.

    We have Nginx Proxy Manager docs here. Nginx Proxy Manager will automate the certificate request process from Let's Encrypt. You do NOT need certbot.

    https://jellyfin.org/docs/general/networ...xy-manager

    You DO NOT need https between Nginx and Jellyfin if they are on the same machine or is another machine on your LAN.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    SammyD
    Offline

    Junior Member

    Posts: 6
    Threads: 1
    Joined: 2024 Jun
    Reputation: 0
    Country:United States
    #3
    2024-06-11, 11:42 PM
    Thanks!
    In cloudflare I do have the A record xxx.com and my CNAME jellyfin points to the A record so that part is solid.
    I'll create an SSL in Nginx and follow the Jellyfin/Nginx notes.
    Nginx and Jellyfin are 2 separate machines on the same LAN so I'll keep the HTTP connection.
    SammyD
    Offline

    Junior Member

    Posts: 6
    Threads: 1
    Joined: 2024 Jun
    Reputation: 0
    Country:United States
    #4
    2024-06-12, 12:31 AM
    I'm getting closer to getting this working. I set up Nginx per instructions and aquired a certificate. Now when I try to connect I get a 500 Internal Server Error. My address shows as https://jellyfin.XXX.com with the https crossed out (not secure). I think I'm missing something in Jellyfin because I haven't changed anything there and HTTPS is not enabled and there is no certificate specified.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #5
    2024-06-12, 12:57 AM
    Nginx is acting as the middleman and handles https with the client. Jellyfin stays http on port 8096.

    Is your cert just for your domain.tld? Or is it a wildcard cert? domain.tld with the subdomain as a SAN?
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    SammyD
    Offline

    Junior Member

    Posts: 6
    Threads: 1
    Joined: 2024 Jun
    Reputation: 0
    Country:United States
    #6
    2024-06-13, 02:00 AM
    (2024-06-12, 12:57 AM)TheDreadPirate Wrote: Is your cert just for your domain.tld?  Or is it a wildcard cert?  domain.tld with the subdomain as a SAN?

    I tried wildcard and just the domain cert but both didn't work. I think I may have an issue with Nginx because, while I can get other redirects working without an SSL (home assistant, pihole, proxmox), I can't get these working with a certificate also.
    SammyD
    Offline

    Junior Member

    Posts: 6
    Threads: 1
    Joined: 2024 Jun
    Reputation: 0
    Country:United States
    #7
    2024-06-14, 02:22 AM
    (2024-06-13, 02:00 AM)SammyD Wrote:
    (2024-06-12, 12:57 AM)TheDreadPirate Wrote: Is your cert just for your domain.tld?  Or is it a wildcard cert?  domain.tld with the subdomain as a SAN?

    I tried wildcard and just the domain cert but both didn't work. I think I may have an issue with Nginx because, while I can get other redirects working without an SSL (home assistant, pihole, proxmox), I can't get these working with a certificate also.

    Figured out the problem. When I'm connected to my home network, the same network as the Nginx and Jellyfin, SSL connections fail. I can access if I'm outside of my home. I don't understand why but at least I know what the problem is.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #8
    2024-06-14, 02:47 AM
    Do you have NAT loopback enabled on your router?
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    SammyD
    Offline

    Junior Member

    Posts: 6
    Threads: 1
    Joined: 2024 Jun
    Reputation: 0
    Country:United States
    #9
    2024-06-14, 01:26 PM
    (2024-06-14, 02:47 AM)TheDreadPirate Wrote: Do you have NAT loopback enabled on your router?

    I do not have that option on my tplink ax3000 router.
    « 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