38 lines
1,017 B
INI
38 lines
1,017 B
INI
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
|
|
|
|
resolvers docker
|
|
# To be able to use multiple replicas of invidious
|
|
# using domains
|
|
nameserver dns1 127.0.0.11:53
|
|
|
|
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
|
|
|
|
# Prometheus for graphs
|
|
frontend prometheus
|
|
bind *:8405
|
|
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*
|
|
option redispatch
|
|
server-template inv_sig_helper 16 inv_sig_helper_cluster:12999 resolvers docker check inter 500ms
|