use default_backend since I only use invidious companion now
This commit is contained in:
parent
8236296525
commit
8c42d23788
1 changed files with 8 additions and 7 deletions
15
haproxy.cfg
15
haproxy.cfg
|
@ -48,18 +48,19 @@ frontend www
|
||||||
#http-after-response add-header alt-svc 'h3=":443"; ma=900'
|
#http-after-response add-header alt-svc 'h3=":443"; ma=900'
|
||||||
|
|
||||||
# HAPROXY_EXVPP_HOST: The external video playback host
|
# HAPROXY_EXVPP_HOST: The external video playback host
|
||||||
acl c hdr(host) -i "$COMPANION_HOST"
|
# acl c hdr(host) -i "$COMPANION_HOST"
|
||||||
acl cc hdr(host) -i "$COMPANION_HOST":8443
|
# acl cc hdr(host) -i "$COMPANION_HOST":8443
|
||||||
acl h hdr(host) -i "$EXVPP_HOST"
|
# acl h hdr(host) -i "$EXVPP_HOST"
|
||||||
acl hh hdr(host) -i "$EXVPP_HOST":8443
|
# 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
|
acl health_check path /health
|
||||||
http-request return status 200 if health_check
|
http-request return status 200 if health_check
|
||||||
|
|
||||||
use_backend http3-ytproxy if h || hh
|
# use_backend http3-ytproxy if h || hh
|
||||||
use_backend companion if c || cc
|
# use_backend companion if c || cc
|
||||||
|
default_backend companion
|
||||||
|
|
||||||
backend http3-ytproxy
|
backend http3-ytproxy
|
||||||
server s1 unix@/tmp/http-ytproxy.sock
|
server s1 unix@/tmp/http-ytproxy.sock
|
||||||
|
|
Loading…
Add table
Reference in a new issue