-
Notifications
You must be signed in to change notification settings - Fork 7
/
config.toml
49 lines (41 loc) · 943 Bytes
/
config.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
39
40
41
42
43
44
45
46
47
48
49
####################
# 配置文件 #
####################
name = "Masterlab Socket Server"
enable = true
status = "dev"
version = "1.0"
single_mode = true
[connector]
socket_port = 9002
websocket_port = 9898
max_conections = 5024
max_packet_rate = 100
max_conntions_ip= 100
max_packet_rate_unit = 10
auth_cmds = ["Auth","Authorize"]
[mysql]
database = "masterlab"
host = "127.0.0.1"
port = "3306"
user = "root"
password = ""
charset = "utf8mb4_unicode_ci"
timeout = "20"
max_open_conns = 2000
max_idle_conns = 1000
[object]
data_type = "redis"
redis_host = "127.0.0.1"
redis_port = "6379"
redis_password = ""
[worker]
to_servers = []
[hub]
hub_host = "127.0.0.1"
hub_port = "7302"
[area]
init_area = ["area-global", "area-global2", "area-global3"]
[log]
log_level = "error"
log_file = ""