• 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?

    revivor
    Offline

    Junior Member

    Posts: 9
    Threads: 1
    Joined: 2024 Mar
    Reputation: 0
    #17
    2024-03-27, 11:01 PM
    Yeah You Did it really Pirate!!!
    I found out why it not worked.

    with
    docker logs -f swag

    I get:

    Quote: nginx: [emerg] directive "set" is not terminated by ";" in /config/nginx/site-confs/default.conf:19

    it was missing an ";" Upside-down-face 

    I put ; at the end of Line 19 and Now This works from you! Thanks a Lot for this script and your patience!!

    The FINAL working Script:

    Quote: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;

        }

    }
    « 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