docker-compose-configs/invidious/inv_sig_helper_cluster/haproxy.cfg

39 lines
1,017 B
INI
Raw Normal View History

2024-09-18 04:45:35 -03:00
global
# This because haproxy is dumb and likes to use the maxconnection from the kernel and that is super mega huge making haproxy oom
maxconn 128
2024-09-18 04:45:35 -03:00
resolvers docker
# To be able to use multiple replicas of invidious
# using domains
nameserver dns1 127.0.0.11:53
2024-09-27 16:41:21 -03:00
defaults
# Without timeouts to prevent haproxy kill the connection
# when there is no packets being sent between the sig helper and
# invidious
#timeout client 60s
#timeout connect 1s
#timeout server 60s
2024-09-27 16:41:21 -03:00
2024-09-18 04:45:35 -03:00
# Prometheus for graphs
frontend prometheus
2024-09-27 16:41:21 -03:00
bind *:8405
2024-09-18 04:45:35 -03:00
mode http
http-request use-service prometheus-exporter if { path /metrics }
no log
frontend sighelper
mode tcp
bind *:13000
default_backend sighelper
backend sighelper
mode tcp
balance leastconn
option tcp-check
tcp-check send-binary 0512345678
tcp-check expect rbinary 12345678*
2024-09-27 16:41:21 -03:00
option redispatch
server-template inv_sig_helper 16 inv_sig_helper_cluster:12999 resolvers docker check inter 500ms