1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/proxyhub/haproxy.cfg

30 lines
709 B
INI
Raw Normal View History

2015-03-19 09:21:37 +02:00
global
maxconn 4000
defaults
mode tcp
timeout connect 5000ms
timeout client 50000ms
timeout server 50000ms
2023-11-08 02:04:18 +02:00
frontend stats
mode http
bind *:8404
stats enable
stats uri /stats
stats refresh 15s
stats admin if TRUE
2015-03-19 09:21:37 +02:00
frontend front
2023-11-08 02:04:18 +02:00
bind *:3128
2015-03-19 09:21:37 +02:00
default_backend back
backend back
balance roundrobin
2023-11-08 02:04:18 +02:00
# sed -i '/proxy.txt/q' haproxy.cfg && sort -u proxy.txt | awk '{printf("\tserver %03d %s check inter 30s\n", ++idx, $0)}' >> haproxy.c
fg
server 001 127.0.0.1:8081 check inter 30s
server 002 127.0.0.1:8082 check inter 30s
server 003 127.0.0.1:8083 check inter 30s
2015-03-19 09:21:37 +02:00