use default_backend since I only use invidious companion now

This commit is contained in:
Fijxu 2025-04-06 01:45:43 -04:00
parent 8236296525
commit 8c42d23788
Signed by: Fijxu
GPG key ID: 32C1DDF333EDA6A4

View file

@ -48,18 +48,19 @@ frontend www
#http-after-response add-header alt-svc 'h3=":443"; ma=900'
# HAPROXY_EXVPP_HOST: The external video playback host
acl c hdr(host) -i "$COMPANION_HOST"
acl cc hdr(host) -i "$COMPANION_HOST":8443
acl h hdr(host) -i "$EXVPP_HOST"
acl hh hdr(host) -i "$EXVPP_HOST":8443
# acl c hdr(host) -i "$COMPANION_HOST"
# acl cc hdr(host) -i "$COMPANION_HOST":8443
# acl h hdr(host) -i "$EXVPP_HOST"
# acl hh hdr(host) -i "$EXVPP_HOST":8443
http-request set-bandwidth-limit video-streaming if h || hh
http-request set-bandwidth-limit video-streaming
acl health_check path /health
http-request return status 200 if health_check
use_backend http3-ytproxy if h || hh
use_backend companion if c || cc
# use_backend http3-ytproxy if h || hh
# use_backend companion if c || cc
default_backend companion
backend http3-ytproxy
server s1 unix@/tmp/http-ytproxy.sock