• 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 Nginx Proxy Manager: Custom locations don't work

     
    • 0 Vote(s) - 0 Average

    Nginx Proxy Manager: Custom locations don't work

    Iacov
    Offline

    Member

    Posts: 65
    Threads: 23
    Joined: 2024 Feb
    Reputation: 0
    Country:Austria
    #8
    2024-02-20, 08:16 PM (This post was last modified: 2024-02-20, 08:23 PM by Iacov. Edited 2 times in total.)
    i have asked bing chat/copilot to translate the code snippets into code for the "advanced" tab...i unfortunately lack the skill to a) assess if the code is correct and b) the knowledge to verify wether the code works
    the proxy client is green/online though

    Code:
    location /socket {
        # Proxy Jellyfin Websockets traffic
        proxy_set_header Connection "upgrade";
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-Protocol $scheme;
        proxy_set_header X-Forwarded-Host $http_host;
       
        # Security / XSS Mitigation Headers
        # NOTE: X-Frame-Options may cause issues with the webOS app
        add_header X-Frame-Options "SAMEORIGIN";
        add_header X-XSS-Protection "0";
        add_header X-Content-Type-Options "nosniff";

        # Content Security Policy
        # See: https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP
        # Enforces https content and restricts JS/CSS to origin
        # External Javascript (such as cast_sender.js for Chromecast) must be whitelisted.
        # NOTE: The default CSP headers may cause issues with the webOS app
        #add_header Content-Security-Policy "default-src https: data: blob: http://image.tmdb.org; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' https://www.gstatic.com/cv/js/sender/v1/cast_sender.js https://www.gstatic.com/eureka/clank/95/cast_sender.js https://www.gstatic.com/eureka/clank/96/cast_sender.js https://www.gstatic.com/eureka/clank/97/cast_sender.js https://www.youtube.com blob:; worker-src 'self' blob:; connect-src 'self'; object-src 'none'; frame-ancestors 'self'";
    }
    location / {
        # Proxy main Jellyfin traffic
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-Protocol $scheme;
        proxy_set_header X-Forwarded-Host $http_host;
        proxy_headers_hash_max_size 2048;
        proxy_headers_hash_bucket_size 128;
       
        # Security / XSS Mitigation Headers
        # NOTE: X-Frame-Options may cause issues with the webOS app
        add_header X-Frame-Options "SAMEORIGIN";
        add_header X-XSS-Protection "0";
        add_header X-Content-Type-Options "nosniff";

        # Content Security Policy
        # See: https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP
        # Enforces https content and restricts JS/CSS to origin
        # External Javascript (such as cast_sender.js for Chromecast) must be whitelisted.
        # NOTE: The default CSP headers may cause issues with the webOS app
        #add_header Content-Security-Policy "default-src https: data: blob: http://image.tmdb.org; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' https://www.gstatic.com/cv/js/sender/v1/cast_sender.js https://www.gstatic.com/eureka/clank/95/cast_sender.js https://www.gstatic.com/eureka/clank/96/cast_sender.js https://www.gstatic.com/eureka/clank/97/cast_sender.js https://www.youtube.com blob:; worker-src 'self' blob:; connect-src 'self'; object-src 'none'; frame-ancestors 'self'";
    }

    will edit with a picture of the detail page
    detail site is attached - but i don't think that i messed up there, as using jellyfin and streaming a movie worked

    btw, why are the custom locations for / and /socket needed?

    edit2: the "rewritten" custom location does not work...the client is online, but i end up on the "welcome to openresty" page


    Attached Files Thumbnail(s)
       
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    Messages In This Thread
    Nginx Proxy Manager: Custom locations don't work - by Iacov - 2024-02-20, 04:46 PM
    RE: Nginx Proxy Manager: Custom locations don't work - by niels - 2024-02-20, 05:56 PM
    RE: Nginx Proxy Manager: Custom locations don't work - by TheDreadPirate - 2024-02-20, 07:03 PM
    RE: Nginx Proxy Manager: Custom locations don't work - by Iacov - 2024-02-20, 07:10 PM
    RE: Nginx Proxy Manager: Custom locations don't work - by TheDreadPirate - 2024-02-20, 07:37 PM
    RE: Nginx Proxy Manager: Custom locations don't work - by Iacov - 2024-02-20, 08:06 PM
    RE: Nginx Proxy Manager: Custom locations don't work - by TheDreadPirate - 2024-02-20, 08:09 PM
    RE: Nginx Proxy Manager: Custom locations don't work - by Iacov - 2024-02-20, 08:16 PM
    RE: Nginx Proxy Manager: Custom locations don't work - by TheDreadPirate - 2024-02-20, 09:15 PM
    RE: Nginx Proxy Manager: Custom locations don't work - by Iacov - 2024-02-21, 06:54 AM
    RE: Nginx Proxy Manager: Custom locations don't work - by Iacov - 2024-02-21, 07:57 AM
    RE: Nginx Proxy Manager: Custom locations don't work - by TheDreadPirate - 2024-02-21, 03:00 PM
    RE: Nginx Proxy Manager: Custom locations don't work - by Iacov - 2024-02-21, 04:24 PM
    RE: Nginx Proxy Manager: Custom locations don't work - by TheDreadPirate - 2024-02-21, 04:32 PM
    RE: Nginx Proxy Manager: Custom locations don't work - by Iacov - 2024-02-21, 04:46 PM
    RE: Nginx Proxy Manager: Custom locations don't work - by TheDreadPirate - 2024-02-21, 05:16 PM
    RE: Nginx Proxy Manager: Custom locations don't work - by Iacov - 2024-02-21, 06:29 PM
    RE: Nginx Proxy Manager: Custom locations don't work - by TheDreadPirate - 2024-02-21, 09:48 PM
    RE: Nginx Proxy Manager: Custom locations don't work - by Iacov - 2024-02-22, 10:31 AM
    RE: Nginx Proxy Manager: Custom locations don't work - by TheDreadPirate - 2024-02-22, 04:31 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