-
Notifications
You must be signed in to change notification settings - Fork 5
/
example.toml
40 lines (31 loc) · 1.09 KB
/
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
34
35
36
37
38
[api]
enabled = true # true | false
bind = ":8000" # bind host:port
#
# Logging configuration
#
[logging]
level = "info" # "debug" | "info" | "warn" | "error"
output = "stdout" # "stdout" | "stderr" | "/path/to/tcpwder.log"
#
# Default values for server configuration, may be overriden in [servers] sections.
# All "duration" fields (for examole, postfixed with '_timeout') have the following format:
# <int><duration> where duration can be one of 'ms', 's', 'm', 'h'.
# Examples: "5s", "1m", "500ms", etc. "0" value means no limit
#
[defaults]
max_connections = 0 # Maximum simultaneous connections to the server
client_idle_timeout = "0" # Client inactivity duration before forced connection drop
backend_idle_timeout = "0" # Backend inactivity duration before forced connection drop
backend_connection_timeout = "0" # Backend connection timeout (ignored in udp)
#
# Servers contains as many [server.<name>] sections as needed.
#
[servers]
# ---------- tcp example ----------- #
[servers.sample]
protocol = "tcp"
bind = "localhost:3306"
upstream = [
"localhost:8888",
]