haproxy/haproxy.cfg

148 lines
3.1 KiB
INI
Raw Permalink Normal View History

2021-04-27 00:26:18 +02:00
global
maxconn 32768
user haproxy
group haproxy
daemon
tune.bufsize 32768
tune.ssl.default-dh-param 2048
ssl-default-bind-ciphersuites TLS_AES_128_GCM_SHA256:TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256
ssl-default-bind-options prefer-client-ciphers no-tls-tickets
ssl-default-bind-options ssl-min-ver TLSv1.2
ssl-default-server-ciphersuites TLS_AES_128_GCM_SHA256:TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256
ssl-default-server-options no-tls-tickets
defaults
log global
mode http
option log-health-checks
option log-separate-errors
option dontlog-normal
option dontlognull
option httplog
option socket-stats
retries 3
option redispatch
maxconn 10000
timeout connect 5s
timeout client 50s
timeout server 450s
timeout tunnel 3600s
timeout http-keep-alive 1s
timeout http-request 15s
timeout queue 30s
timeout tarpit 60s
default-server inter 3s rise 2 fall 3
listen stats
bind 0.0.0.0:9090
stats enable
stats uri /
stats refresh 5s
2021-04-27 11:49:06 +02:00
frontend birb
2021-04-27 00:26:18 +02:00
bind 0.0.0.0:80
mode http
2021-04-27 11:49:06 +02:00
use_backend birb
2021-04-27 00:26:18 +02:00
2021-04-27 11:49:06 +02:00
backend birb
2021-04-27 00:26:18 +02:00
balance leastconn
mode http
http-request set-header Host "birb.k8s.kmlabz.com"
compression algo gzip
2021-04-27 11:49:06 +02:00
server cloud lb-1.kmlabz.com:443 check ssl verify none
frontend ursim
bind 0.0.0.0:81
mode http
use_backend ursim
backend ursim
balance leastconn
mode http
http-request set-header Host "ursim.k8s.kmlabz.com"
compression algo gzip
server cloud lb-1.kmlabz.com:443 check ssl verify none
2021-04-27 00:26:18 +02:00
2021-07-22 16:23:40 +02:00
frontend birb-vke
bind 0.0.0.0:82
mode http
use_backend birb-vke
2021-07-22 16:26:07 +02:00
backend birb-vke
2021-07-22 16:23:40 +02:00
balance leastconn
mode http
http-request set-header Host "vkeegy.birbnetes"
2021-07-22 16:25:41 +02:00
server master 192.168.122.2:31080 check
server worker1 192.168.122.3:31080 check
server worker2 192.168.122.4:31080 check
2021-07-22 16:23:40 +02:00
2021-07-26 14:34:35 +02:00
frontend birb-edge
bind 0.0.0.0:83
mode http
use_backend birb-edge
backend birb-edge
balance leastconn
mode http
server edge 192.168.36.5:80 check
2021-04-27 00:26:18 +02:00
listen mqtt
bind *:1883
mode tcp
option clitcpka
timeout client 3h
timeout server 3h
option tcplog
balance leastconn
2021-04-27 11:49:06 +02:00
server worker1 lb-1.kmlabz.com:8883 check ssl verify none
2021-07-22 17:21:38 +02:00
listen mqtt-vke
bind *:1884
mode tcp
option clitcpka
timeout client 3h
timeout server 3h
option tcplog
balance leastconn
server worker1 192.168.122.3:30007 check
2021-07-26 14:34:35 +02:00
listen mqtt-edge
bind *:1885
mode tcp
option clitcpka
timeout client 3h
timeout server 3h
option tcplog
balance leastconn
2021-07-26 15:53:54 +02:00
server edge 192.168.36.5:1883 check
2021-07-28 16:02:20 +02:00
listen amqp-vke
bind *:5672
mode tcp
option clitcpka
timeout client 3h
timeout server 3h
option tcplog
balance leastconn
2021-07-28 16:15:00 +02:00
server master 192.168.122.2:32551 check
2021-07-28 16:10:50 +02:00
listen psql-vke
bind *:5432
mode tcp
option clitcpka
timeout client 3h
timeout server 3h
option tcplog
balance leastconn
2021-07-28 16:15:00 +02:00
server master 192.168.122.2:32128 check
2021-08-10 15:49:27 +02:00
frontend input-mix-from-edge
bind 0.0.0.0:84
mode http
use_backend input-mix-from-edge
backend input-mix-from-edge
2021-07-28 16:15:00 +02:00
balance leastconn
2021-08-10 15:49:27 +02:00
mode http
server master 192.168.36.5:81 check