-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.example.toml
33 lines (28 loc) · 1.07 KB
/
config.example.toml
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
# Address to listen on.
bind = "0.0.0.0:19132"
# Address to create proxying UDP sockets on.
# Changing it is only useful if you want to use a different network IP
# for Proxy <-> Backend than for Player <-> Proxy.
#
# Please keep the port to 0 to let the OS allocate an available port for each client.
proxy_bind = "0.0.0.0:0"
# Load balancing method to use.
#
# Available: round_robin, least_connected
load_balance_method = "round_robin"
# Whether to send HAProxy info to the servers.
# You may need to configure your server software to support it.
proxy_protocol = true
[backend]
# Rate, in seconds, at which to ping servers for heatlh checks.
health_check_rate = 5
# Rate, in seconds, at which to fetch MOTD information.
motd_refresh_rate = 20
# Address of the server to ping to get MOTD information (including player count, etc).
# Leave it commented out to fetch it from any of the configured servers below (recommended).
#motd_source = "127.0.0.1:30030"
# Servers to proxy/load balance players to.
servers = [
{ address = "127.0.0.1:30031" },
{ address = "127.0.0.1:30032" },
]