HAProxy
非官方测试版翻译
本页面由 PageTurner AI 翻译(测试版)。未经项目官方认可。 发现错误? 报告问题 →
注意: 如需支持 HTTP/3,请确保在防火墙上转发/开放 UDP 端口 443,因为 HTTP/3 使用 UDP 协议。
"HAProxy 是一款免费开源软件,可为基于 TCP 和 HTTP 的应用程序提供高可用性负载均衡和代理服务,能够将请求分发到多台服务器。[1] 它使用 C 语言编写,[2] 并因卓越的性能效率(在处理器和内存资源占用方面)而广受赞誉。" - 维基百科
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