• 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 Remote access problems using Nginx and Cloudflare.

     
    • 0 Vote(s) - 0 Average

    Remote access problems using Nginx and Cloudflare.

    Cadmoon
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2024 Jan
    Reputation: 0
    Country:Australia
    #1
    2024-01-27, 06:01 AM
    Hi guys, I'm having some issues getting remote access up and running on my server. 
    Whenever I try to connect to my domain that is reverse proxied to my server via Cloudflare I get a 502 (bad gateway) error. Everything indicates a server side error but I can't figure out where. 

    Some info on my current setupand what I have done so far: 
    Running Jellyfin and Nginx as dockers on Unraid
    I have contacted my ISP and had them remove me from CGNAT and unblock ports from their end
    I have opened ports 80 and 443 on my router and forwarded them to Nginx's internal IP 
    I set up DNS records in Cloudflare to direct my domain to my IP and have set the provided nameservers with my domain registrar 
    I have set up the redirects for my domain to my internal jellyfin IP and port in Nginx, using http, and attached an SSL cert generated with Nginx 

    Anything standing out that I missed or may have configured wrong? As a trial I set Nginx to direct my domain to a 404 host and this seemed to work, at least in that I got shown a generic 404. 

    If anyone needs any other info to help out please let me know. 

    Thanks
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-01-27, 07:02 PM
    Can you share your nginx config with us via sourcebin? Censor you domain name.
    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]
    Cadmoon
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2024 Jan
    Reputation: 0
    Country:Australia
    #3
    2024-01-27, 10:06 PM
    Hey mate, hopefully this if the particular config file you're requesting. If not please let me know which one you're after and I'll do my best to find it.
    https://srcb.in/JJqBxcT8tc

    Thanks for your help.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2024-01-28, 01:57 AM
    Is this the right config? I don't see any of the proxypass settings for Jellyfin.
    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]
    Cadmoon
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2024 Jan
    Reputation: 0
    Country:Australia
    #5
    2024-01-28, 02:36 AM
    It is likely the wrong config file, I had trouble locating any of them within Unraid.

    I have however fixed the issue. If anyone else stumbles on this looking for a solution what I had wrong was using the default ports in Nginx of 80 and 443, these ports are used by Unraid to remote access the server. My fix was to set the ports in Nginx to something else and then set my router port forwarding to direct traffic to those ports instead.
    « 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