-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhaproxy.cfg
39 lines (36 loc) · 1.25 KB
/
haproxy.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#---------------------------------------------------------------------
# Example configuration for a possible web application. See the
# full configuration options online.
#
# http://haproxy.1wt.eu/download/1.4/doc/configuration.txt
#
#---------------------------------------------------------------------
#---------------------------------------------------------------------
# Global settings
#---------------------------------------------------------------------
global
log stdout format raw local0
maxconn 4000
pidfile /tmp/haproxy.pid
#---------------------------------------------------------------------
# gateway server settings
#---------------------------------------------------------------------
defaults
log global
mode http
option httplog
option dontlognull
timeout connect 5000
timeout client 50000
timeout server 50000
#---------------------------------------------------------------------
# minecraft server gateway
#---------------------------------------------------------------------
listen minecraft01
bind 0.0.0.0:25565
mode tcp
option tcplog
balance roundrobin
server server01 172.18.0.1:5001
#server server02 172.18.0.1:5002
#server server03 172.18.0.1:5003