• 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 Guides, Walkthroughs & Tutorials HAproxy on PFSense GUI Guide with screenshots Webhooks and all

     
    • 0 Vote(s) - 0 Average

    HAproxy on PFSense GUI Guide with screenshots Webhooks and all

    gaming09
    Offline

    Member

    Posts: 70
    Threads: 25
    Joined: 2023 Jun
    Reputation: 1
    Country:United States
    #1
    2023-06-21, 06:41 PM (This post was last modified: 2024-12-01, 07:24 PM by gaming09. Edited 3 times in total.)
    *** Guide now Deprecated - updated guide HERE ***


    Edited: Added backend security update
    For whatever reason this has been a lot of trial and error and via pfsense HA gui doesn't always align to HAproxy config documentation
    For reverse proxy via HAproxy on PFSense this is what you need

    Backend: (Example 1.bmp)
    Your Jellyfin backend>Advanced Settings>Backend pass thru
    These 3 lines as is
    *** change JELLYFINLOCALIP with your local IP

    Code:
    http-request set-header X-Forwarded-Port %[dst_port]   
    http-request add-header X-Forwarded-Proto https if { ssl_fc }
    server jellyfin(or your backend name) JELLYFINLOCALIP:8096
    http-response set-header Access-Control-Allow-Origin https://YOURJFDOMAIN.com
    http-response set-header Cache-Control "no-cache, no-store, must-revalidate, private"
    http-response del-header Server

    [Image: GuawSed.png]

    Frontend (Example 2.bmp)
    Your Frontend>Default backend, access control lists and actions>Access Control lists>Table
    ***JF is my short-name to attach to the actions table to hit the backend for HA proxy change it to yours
    ***Change YOUR_PUBLIC_URL.com to your external URL
    Code:
    jf |  Custom ACL:  | hdr(host) -i YOUR_PUBLIC_URL.com
    host_ws | Host starts with: | ws. 
    hdr_connection_upgrade | Custom acl: | hdr(Connection) -i upgrade   
    hdr_upgrade_websocket  | Custom acl: | hdr(Upgrade) -i websocket

    [Image: ppaLTTc.jpg]

    I hope this helps someone else and saves them a few hours of logs (most of this was available on the jellyfin guide but it wasn't intuitive for the GUI
    https://jellyfin.org/docs/general/networking/haproxy/

    Maybe I have extra stuff in there, if I do let me know. As far as I can tell everything is working now without errors
    Stats:
    JF running on Unraid Docker
    Library Transcoded to h265 mkv via TDARR
    Ram Drive Transcode
    5950x
    a770
    60tb
    3
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    Messages In This Thread
    HAproxy on PFSense GUI Guide with screenshots Webhooks and all - by gaming09 - 2023-06-21, 06:41 PM
    RE: HAproxy on PFSense GUI Guide with screenshots Webhooks and all - by DarthVegan - 2023-09-26, 12:41 AM
    RE: HAproxy on PFSense GUI Guide with screenshots Webhooks and all - by SKECHER9 - 2024-01-17, 04:15 PM
    RE: HAproxy on PFSense GUI Guide with screenshots Webhooks and all - by TheDreadPirate - 2024-01-17, 06:14 PM
    RE: HAproxy on PFSense GUI Guide with screenshots Webhooks and all - by SKECHER9 - 2024-01-18, 05:57 PM
    RE: HAproxy on PFSense GUI Guide with screenshots Webhooks and all - by cooljimy84 - 2024-02-12, 05:06 PM
    RE: HAproxy on PFSense GUI Guide with screenshots Webhooks and all - by Icepick869 - 2024-10-16, 02:27 AM
    RE: HAproxy on PFSense GUI Guide with screenshots Webhooks and all - by alleycat - 2024-10-16, 05:15 AM
    RE: HAproxy on PFSense GUI Guide with screenshots Webhooks and all - by Icepick869 - 2024-10-16, 10:37 PM
    RE: HAproxy on PFSense GUI Guide with screenshots Webhooks and all - by alleycat - 2024-10-17, 12:59 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