You've already forked dockerfiles
mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-07-15 01:14:25 +02:00
add haproxy
This commit is contained in:
27
haproxy/arm/haproxy.cfg
Normal file
27
haproxy/arm/haproxy.cfg
Normal file
@ -0,0 +1,27 @@
|
||||
# +- jp (:1081)
|
||||
# |
|
||||
# |- tw (:1082)
|
||||
# frontend --- backend -+
|
||||
# (*:1080) |- hk (:1083)
|
||||
# |
|
||||
# +- us (:1084)
|
||||
|
||||
global
|
||||
maxconn 4000
|
||||
|
||||
defaults
|
||||
mode tcp
|
||||
timeout connect 5000ms
|
||||
timeout client 50000ms
|
||||
timeout server 50000ms
|
||||
|
||||
frontend front
|
||||
bind *:1080
|
||||
default_backend back
|
||||
|
||||
backend back
|
||||
balance roundrobin
|
||||
server jp 127.0.0.1:1081 weight 50
|
||||
server tw 127.0.0.1:1082 weight 20
|
||||
server hk 127.0.0.1:1083 weight 15
|
||||
server us 127.0.0.1:1084 weight 15
|
Reference in New Issue
Block a user