• 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 NPM + Docker and Jellyfin

    Pages (2): 1 2 Next »

     
    • 0 Vote(s) - 0 Average

    NPM + Docker and Jellyfin

    Having some issues with IP... It shows the docker IP instead of real ip.
    AverageStewie
    Offline

    Junior Member

    Posts: 5
    Threads: 1
    Joined: 2024 May
    Reputation: 0
    Country:Norway
    #1
    2024-05-28, 10:41 AM
    Hello,

    I'm having some issues with IPs on my server... Jellyfin is being run behinde nginx proxy manager. It only gives me 172.17.0.1 for IPs, regardless where I connect from...

    NPM and Jellyfin is both running inside a docker container.
    I have a DNS server running as well (Adguardhome in docker) that I've set for my network, I'm as well redirecting jf.mydomain.no to 10.0.0.140 inside adguardhome.

    I've attached som photos from jellyfin and NPM.

    NPM advanced tab contains the Jellyfin nginx config from their DOC.

    Anyone know what to do?


    Attached Files Thumbnail(s)
                   
    bitmap
    Offline

    Community Moderator

    Posts: 915
    Threads: 9
    Joined: 2023 Jul
    Reputation: 30
    #2
    2024-05-28, 12:31 PM
    I use vanilla nginx, so my config is a bit different, but if you read the note on the last screenshot you included, it says that set_header and add_header directives are ignored and must be added in a location custom config.

    I would guess that's where your issue is -- your set_header directives are not part of a location block and are being ignored.
    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]
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #3
    2024-05-28, 12:58 PM (This post was last modified: 2024-05-28, 12:59 PM by TheDreadPirate. Edited 1 time in total.)
    Did you set a "known proxy" in Jellyfin?

    (btw, I wrote the latest iteration of the Nginx Proxy Manager docs)
    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]
    AverageStewie
    Offline

    Junior Member

    Posts: 5
    Threads: 1
    Joined: 2024 May
    Reputation: 0
    Country:Norway
    #4
    2024-05-28, 01:14 PM (This post was last modified: 2024-05-28, 01:16 PM by AverageStewie.)
    (2024-05-28, 12:31 PM)bitmap Wrote: I use vanilla nginx, so my config is a bit different, but if you read the note on the last screenshot you included, it says that set_header and add_header directives are ignored and must be added in a location custom config.

    I would guess that's where your issue is -- your set_header directives are not part of a location block and are being ignored.

    Yea I did notice that... But the in the docs it says to put it there... So I'm not sure ( https://jellyfin.org/docs/general/networ...xy-manager )

    I tried to create custom location and so on.. But then it stops working all togehter.....

    (2024-05-28, 12:58 PM)TheDreadPirate Wrote: Did you set a "known proxy" in Jellyfin?

    (btw, I wrote the latest iteration of the Nginx Proxy Manager docs)

    Yes, I put the IP for it in there( 10.0.0.140 ). Because the NPM and DNS is also running on the same host as jellyfin.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #5
    2024-05-28, 01:26 PM
    Is 172.17.0.1 the IP of the Nginx container? If so, that should be IP for the known proxy.
    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]
    AverageStewie
    Offline

    Junior Member

    Posts: 5
    Threads: 1
    Joined: 2024 May
    Reputation: 0
    Country:Norway
    #6
    2024-05-28, 01:47 PM
    (2024-05-28, 01:26 PM)TheDreadPirate Wrote: Is 172.17.0.1 the IP of the Nginx container?  If so, that should be IP for the known proxy.

    Npm has: 172.18.0.2.

    I think 172.17.0.1 is the gateway? Or am I wrong.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #7
    2024-05-28, 01:58 PM
    Try either of those. Pretty sure it should be Nginx's IP, 172.18.0.2.
    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]
    MisterMcDuck
    Offline

    Junior Member

    Posts: 18
    Threads: 0
    Joined: 2024 May
    Reputation: 4
    Country:United States
    #8
    2024-05-28, 03:10 PM
    FWIW your custom config looks a bit different than mine, maybe compare?

    Code:
        location / {
            # Proxy main Jellyfin traffic
            proxy_pass $forward_scheme://$server:$port;
            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;
        }

        location = /web/ {
            # Proxy main Jellyfin traffic
            proxy_pass $forward_scheme://$server:$port/web/index.html;
            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;
        }

        location /socket {
            # Proxy Jellyfin Websockets traffic
          proxy_pass $forward_scheme://$server:$port;
            proxy_http_version 1.1;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection "upgrade";
            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;
        }
    AverageStewie
    Offline

    Junior Member

    Posts: 5
    Threads: 1
    Joined: 2024 May
    Reputation: 0
    Country:Norway
    #9
    2024-05-28, 06:41 PM (This post was last modified: 2024-05-28, 06:41 PM by AverageStewie.)
    (2024-05-28, 01:58 PM)TheDreadPirate Wrote: Try either of those.  Pretty sure it should be Nginx's IP, 172.18.0.2.

    I tried putting it as know proxy, didn't do anything.
    I restarted afterwards. hmmm

    (2024-05-28, 03:10 PM)MisterMcDuck Wrote: FWIW your custom config looks a bit different than mine, maybe compare?

    Code:
        location / {
            # Proxy main Jellyfin traffic
            proxy_pass $forward_scheme://$server:$port;
            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;
        }

        location = /web/ {
            # Proxy main Jellyfin traffic
            proxy_pass $forward_scheme://$server:$port/web/index.html;
            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;
        }

        location /socket {
            # Proxy Jellyfin Websockets traffic
          proxy_pass $forward_scheme://$server:$port;
            proxy_http_version 1.1;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection "upgrade";
            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;
        }

    But is this for Nginx Proxy Manager or just nginx?
    bitmap
    Offline

    Community Moderator

    Posts: 915
    Threads: 9
    Joined: 2023 Jul
    Reputation: 30
    #10
    2024-05-29, 12:16 AM
    That looks similar (not identical) to my nginx conf file for Jellyfin, so wouldn't be entirely applicable to NPM. However, if you're able to edit the conf file within NPM, something like that should work. Doesn't NPM just create the conf file for you anywho?
    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]
    Pages (2): 1 2 Next »

    « 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