• 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 General Questions Swag Docker config example for jellyfin?

     
    • 0 Vote(s) - 0 Average

    Swag Docker config example for jellyfin?

    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #11
    2024-03-27, 06:23 PM
    I just noticed a mistake on one of my prior posts.  Also re-reading the Nginx docs.  I blended your config with our Nginx docs.  There were some weird things with yours.  Make a copy of yours and then replace the original with this.

    Code:
    server {
        listen 443 ssl;
        listen [::]:443 ssl;
        server_name jellyfin.*;
        include /config/nginx/ssl.conf;
        include /config/nginx/proxy.conf;
        resolver 127.0.0.11 valid=30s;
        client_max_body_size 0;
        set $jellyfin 192.0.0.2
        location / {
            # Proxy main Jellyfin traffic
            proxy_pass http://$jellyfin: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;
            proxy_set_header X-Forwarded-Host $http_host;

            # Disable buffering when the nginx proxy gets very resource heavy upon streaming
            proxy_buffering off;
        }

        # location block for /web - This is purely for aesthetics so /web/#!/ works instead of having to go to /web/index.html/#!/
        location = /web/ {
            # Proxy main Jellyfin traffic
            proxy_pass http://$jellyfin:8096/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 http://$jellyfin:8096;
            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;
        }
    }
    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]
    1
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    Messages In This Thread
    Swag Docker config example for jellyfin? - by revivor - 2024-03-26, 06:19 PM
    RE: Swag Docker config example for jellyfin? - by TheDreadPirate - 2024-03-27, 12:44 PM
    RE: Swag Docker config example for jellyfin? - by revivor - 2024-03-27, 02:10 PM
    RE: Swag Docker config example for jellyfin? - by TheDreadPirate - 2024-03-27, 02:47 PM
    RE: Swag Docker config example for jellyfin? - by revivor - 2024-03-27, 05:07 PM
    RE: Swag Docker config example for jellyfin? - by TheDreadPirate - 2024-03-27, 05:17 PM
    RE: Swag Docker config example for jellyfin? - by revivor - 2024-03-27, 05:24 PM
    RE: Swag Docker config example for jellyfin? - by revivor - 2024-03-27, 05:39 PM
    RE: Swag Docker config example for jellyfin? - by TheDreadPirate - 2024-03-27, 05:41 PM
    RE: Swag Docker config example for jellyfin? - by revivor - 2024-03-27, 06:10 PM
    RE: Swag Docker config example for jellyfin? - by TheDreadPirate - 2024-03-27, 06:23 PM
    RE: Swag Docker config example for jellyfin? - by revivor - 2024-03-27, 06:47 PM
    RE: Swag Docker config example for jellyfin? - by TheDreadPirate - 2024-03-27, 07:05 PM
    RE: Swag Docker config example for jellyfin? - by revivor - 2024-03-27, 07:22 PM
    RE: Swag Docker config example for jellyfin? - by SenorSmartyPants - 2024-03-27, 07:52 PM
    RE: Swag Docker config example for jellyfin? - by TheDreadPirate - 2024-03-27, 08:48 PM
    RE: Swag Docker config example for jellyfin? - by revivor - 2024-03-27, 11:01 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