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 21529a0f1d
Signed by: Fijxu
GPG key ID: 32C1DDF333EDA6A4
2 changed files with 9 additions and 8 deletions

View file

@ -36,7 +36,7 @@ services:
- ./i2pd_data:/home/i2pd/data
ports:
- "127.0.0.1:7070:7070/tcp"
- "51023:51023/tcp"
- "51023:51023"
companion:
<<: *common-elements

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