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

    Pages (2): « Previous 1 2

     
    • 0 Vote(s) - 0 Average

    Swag Docker config example for jellyfin?

    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    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
    revivor
    Offline

    Junior Member

    Posts: 9
    Threads: 1
    Joined: 2024 Mar
    Reputation: 0
    #12
    2024-03-27, 06:47 PM (This post was last modified: 2024-03-27, 11:02 PM by revivor. Edited 1 time in total.)
    I put it in with no reaction. This is current config:



    EDIT: "SEE final Script below!"
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #13
    2024-03-27, 07:05 PM
    I'll give it another whack with my test setup and try to get SWAG working there. I'll get back to you, hopefully, by Sunday. I won't have time before then. Unless you figure it out before then.
    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]
    revivor
    Offline

    Junior Member

    Posts: 9
    Threads: 1
    Joined: 2024 Mar
    Reputation: 0
    #14
    2024-03-27, 07:22 PM
    I would appreciate it -  was looking and testing for a solution since months.

    and if i find something out i will let you know before sunday. thanks
    SenorSmartyPants
    Offline

    Junior Member

    Posts: 7
    Threads: 2
    Joined: 2023 Jun
    Reputation: 0
    #15
    2024-03-27, 07:52 PM
    I use host networking and I've finally got one family member using it offsite. I need to figure out the best way to secure this/authentication. Family member uses a Roku, currently no password, but want to switch to password/pin but not working well on my 10.8.7 install (doesn't ever prompt for pin on local networks).

    Here's my swag config.

    Quote:server {
        listen 443 ssl;
        listen [::]:443 ssl;

        server_name jellyfin.* j.*;

        include /config/nginx/ssl.conf;

        client_max_body_size 0;

        location / {
            include /config/nginx/proxy.conf;
            include /config/nginx/resolver.conf;
            set $upstream_app rockpi;
            set $upstream_port 8096;
            set $upstream_proto http;
            proxy_pass $upstream_protoConfused-face/$upstream_app:$upstream_port;

            proxy_set_header Range $http_range;
            proxy_set_header If-Range $http_if_range;
        }

        location ~ (/jellyfin)?/socket {
            include /config/nginx/proxy.conf;
            include /config/nginx/resolver.conf;
            set $upstream_app rockpi;
            set $upstream_port 8096;
            set $upstream_proto http;
            proxy_pass $upstream_protoConfused-face/$upstream_app:$upstream_port;

        }
    }
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #16
    2024-03-27, 08:48 PM
    You need to set a password for the account first. Then it will prompt on the first login. I'm not aware of a way to make it prompt for a PIN for subsequent logins.
    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]
    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;

        }

    }
    Pages (2): « Previous 1 2

    « 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