• 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...
    Protos
    Offline

    Junior Member

    Posts: 6
    Threads: 2
    Joined: 2024 Feb
    Reputation: 0
    Country:United States
    #1
    2024-02-23, 06:16 PM
    I've been trying to do this forever and I am completely stuck. I have a working cert from ACME but that's as far as I've gotten. I've changed so many settings so many times in HAProxy but nothing even tries to work. Does anyone have a working setup with HAProxy on pfsense? If so, please share your wizard magic. I would greatly appreciate it... I've attached images of my setup below. And yes, I did enable HAProxy in the general settings. I know thats a common thing people miss


    Attached Files Thumbnail(s)
           
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-02-23, 06:38 PM
    Did you read this walkthrough in our guide section?

    https://forum.jellyfin.org/t-haproxy-on-...ks-and-all
    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]
    Protos
    Offline

    Junior Member

    Posts: 6
    Threads: 2
    Joined: 2024 Feb
    Reputation: 0
    Country:United States
    #3
    2024-02-25, 09:24 PM
    Yeah and still no luck...
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2024-02-25, 10:06 PM
    Pretty sure for the "server list", you should be specifying port 8096 and http instead of 443 and https. It is already 443/https on the external connection.
    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]
    Protos
    Offline

    Junior Member

    Posts: 6
    Threads: 2
    Joined: 2024 Feb
    Reputation: 0
    Country:United States
    #5
    2024-02-26, 03:22 PM
    Ah yeah I noticed that and I changed it a few days ago but still nothing
    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.
    Protos
    Offline

    Junior Member

    Posts: 6
    Threads: 2
    Joined: 2024 Feb
    Reputation: 0
    Country:United States
    #7
    2024-02-26, 09:09 PM
    This is what currently lies in my Backend Pass-thru settings:

    Code:
    http-request set-header X-Forwarded-Port %[dst_port]   
    http-request add-header X-Forwarded-Proto https if { ssl_fc }
    server JellyFin 192.168.0.157:8096
    http-response set-header Access-Control-Allow-Origin https://movies.protostv.com
    http-response set-header Cache-Control "no-cache, no-store, must-revalidate, private"
    http-response del-header Server
    « 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