• 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 pfsense + HAProxy setup for JellyFin

     
    • 0 Vote(s) - 0 Average

    pfsense + HAProxy setup for JellyFin

    I've been stuck on this for what feels like an eternity...
    joshuaboniface
    Offline

    Project Leader

    Posts: 115
    Threads: 25
    Joined: 2023 Jun
    Reputation: 16
    Country:Canada
    #6
    2024-02-26, 08:28 PM
    What exactly isn't working about it?

    I'm not super familiar with pfSense's GUI wrapper on top of HAProxy, but I have had this working in the past. Here was my backend section:

    Code:
    backend jfX_http
        mode http
        balance leastconn
        cookie SERVERID insert indirect nocache
        stick store-request src
        stick-table type ip size 200k expire 30m peers keepalived-pair
        option httpchk GET /health HTTP/1.1\r\nHost:\ jellyfin
        option forwardfor
        timeout queue 5000
        timeout server 32000000
        timeout connect 5000
        acl no_BAD path_reg -i ^\/Images\/Remote
        acl no_BAD path_reg -i ^\/Items\/RemoteSearch\/Image
        acl no_BAD path_reg -i ^\/Items\/[^\.]*\/RemoteImages\/Download
        http-request redirect location https://i.ytimg.com/vi/avCWDDox1nE/maxresdefault.jpg if no_BAD
        http-response set-header X-Frame-Options SAMEORIGIN
        http-response set-header X-XSS-Protection "1;mode=block"
        http-response set-header Referrer-Policy "no-referrer,same-origin,strict-origin,strict-origin-when-cross-origin"
        http-response set-header X-Content-Type-Options nosniff
        http-response set-header Strict-Transport-Security max-age=31536000;includeSubDomains;preload
        http-response set-header Content-Security-Policy  "default-src 'none'; font-src 'self'; connect-src 'self' wss: ws: https://mb3admin.com; media-src 'self' blob: data:; manifest-src 'self'; base-uri 'none'; form-action 'self'; frame-ancestors 'self'; object-src 'none'; worker-src 'self' blob:; script-src 'unsafe-inline' 'self' https://www.gstatic.com; img-src data: https: http: ; style-src 'unsafe-inline' 'self'"
        server jf1 192.168.0.100:8096/ check inter 5000 cookie jf1

    That said, I moved to NGiNX for Jellyfin and avoid sending it through my load balancer at this point; I'd recommend the same as it makes the TLS stuff easier and such.
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    Messages In This Thread
    pfsense + HAProxy setup for JellyFin - by Protos - 2024-02-23, 06:16 PM
    RE: pfsense + HAProxy setup for JellyFin - by TheDreadPirate - 2024-02-23, 06:38 PM
    RE: pfsense + HAProxy setup for JellyFin - by Protos - 2024-02-25, 09:24 PM
    RE: pfsense + HAProxy setup for JellyFin - by TheDreadPirate - 2024-02-25, 10:06 PM
    RE: pfsense + HAProxy setup for JellyFin - by Protos - 2024-02-26, 03:22 PM
    RE: pfsense + HAProxy setup for JellyFin - by joshuaboniface - 2024-02-26, 08:28 PM
    RE: pfsense + HAProxy setup for JellyFin - by Protos - 2024-02-26, 09:09 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