Doorgaan naar hoofdinhoud

HAProxy

Onofficiële Beta-vertaling

Deze pagina is vertaald door PageTurner AI (beta). Niet officieel goedgekeurd door het project. Een fout gevonden? Probleem melden →

Opmerking: Voor HTTP/3-ondersteuning moet je ervoor zorgen dat UDP-poort 443 is doorgestuurd/geopend in je firewall, omdat HTTP/3 UDP gebruikt.

"Haproxy is gratis, open-source software die een load balancer met hoge beschikbaarheid en proxyserver biedt voor TCP- en HTTP-gebaseerde applicaties, die verzoeken verdeelt over meerdere servers.[1] Het is geschreven in C[2] en staat bekend als snel en efficiënt (wat betreft processor- en geheugengebruik)." - Wikipedia

frontend jellyfin_proxy
bind *:80

# Note that haproxy requires you to concatenate the certificate and key into a single file
# Uncomment the appropriate lines after you have acquired a SSL Certificate
#
# HAProxy <1.7
# bind *:443 ssl crt /etc/ssl/DOMAIN_NAME.pem
#
# HAProxy >1.8
# bind *:443 ssl crt /etc/ssl/DOMAIN_NAME.pem alpn h2,http/1.1
# redirect scheme https if !{ ssl_fc }
#
# Uncomment these lines to allow LetsEncrypt authentication
# acl letsencrypt_auth path_beg /.well-known/acme-challenge/
# use_backend letsencrypt if letsencrypt_auth

acl jellyfin_server hdr(host) -i DOMAIN_NAME
use_backend jellyfin if jellyfin_server

backend jellyfin
option httpchk
option forwardfor
http-check send meth GET uri /health
http-check expect string Healthy
server jellyfin SERVER_IP_ADDRESS:8096

# Uncomment these lines to allow LetsEncrypt authentication
#
#backend letsencrypt
# server letsencrypt 127.0.0.1:8888