• 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 Lost my Nginx config, can't get it it working again.

     
    • 0 Vote(s) - 0 Average

    Lost my Nginx config, can't get it it working again.

    I'm so lost.
    BB98
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2025 Jan
    Reputation: 0
    Country:United States
    #4
    2025-01-21, 11:45 PM (This post was last modified: 2025-01-22, 12:09 AM by BB98. Edited 4 times in total.)
    Hey DreadPirate, thanks for the link. I did look at those before posting.
    The examples don't really cover what anything in them is there for, and
    all make the assumption that I am using SSL, which I am not.
    I am thinking this line: "listen [::]:80;" is for IPv6, which I am also not using.
    Are the header options mandatory to get it to work?

    I threw the pertinent looking lines into my config, and it's still not working.
    Forgot to mention the config is in /etc/nginx/sites-available and symlinked into /sites-enabled.

    The new config with things added:

    Code:
    server {
      listen 80;
      listen [::]:80; #for IPv6?
      server_name domain.com; #hostname? domain? IP? Not sure which should be here.
                              #Am I wrong to assume that without this line, any packets set to this machine would
                              #Be forwarded to the proxy_pass host, regardless of what they were addressed to?
    ]

    server {
      server_name domain.com
      client_max_body_size 20M;
      location / {
        proxy_pass http://localhost: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; #What is the difference between these 2 lines?
        proxy_set_header X-Forwarded-Host $http_host;

        proxy_buffering off;
    }

    The access.log and error.log are both empty,
    and I am still getting a "Connection Timed Out" message when I try to connect to the server on port 80.
    I can connect using http://10.0.0.222:8096 and http://domain.com:8096

    Thanks again.

    (Don't mind the above post... I haven't used a forum in 20 years.)
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    Messages In This Thread
    Lost my Nginx config, can't get it it working again. - by BB98 - 2025-01-21, 04:29 PM
    RE: Lost my Nginx config, can't get it it working again. - by TheDreadPirate - 2025-01-21, 04:36 PM
    RE: Lost my Nginx config, can't get it it working again. - by BB98 - 2025-01-21, 11:40 PM
    RE: Lost my Nginx config, can't get it it working again. - by BB98 - 2025-01-21, 11:45 PM
    RE: Lost my Nginx config, can't get it it working again. - by TheDreadPirate - 2025-01-22, 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