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 16384
|
2024-09-27 16:41:47 -03:00
|
|
|
log stdout format raw local0 debug
|
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
|
2024-09-27 16:41:47 -03:00
|
|
|
log global
|
|
|
|
option tcplog
|
|
|
|
timeout client 2000ms
|
|
|
|
timeout connect 2000ms
|
|
|
|
timeout server 500ms
|
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
|
2024-09-27 16:41:47 -03:00
|
|
|
option tcp-check
|
|
|
|
tcp-check send-binary 0512345678
|
|
|
|
tcp-check expect rbinary 12345678
|
2024-09-27 16:41:21 -03:00
|
|
|
option redispatch
|
2024-09-27 16:41:47 -03:00
|
|
|
server-template inv_sig_helper 16 inv_sig_helper_cluster:12999 resolvers docker check inter 500ms
|