-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconfig.json
70 lines (64 loc) · 1.23 KB
/
config.json
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{
"ver":"1.0",
"db":{
"game":"root:tcg123456@tcp(192.168.3.194:3306)/tcg_new"
},
"redis":{
"addr":"127.0.0.1:6379",
"password":"",
"poolsize":10,
"dbs":[0,1,2,3,4]
},
"design":{
"path":"../config/csv/"
},
"config":{
"log":{
"level":"info",
"path":"log",
"flag":18
},
"proto":"json",
"_comment": "配置静态地址,value空表示本进程",
"remote":{
},
"_comment": "当前进程启动的所有服务配置,remoteAddr空表示本进程",
"local":{
"login":{
"serviceName":"login",
"serviceType":"login",
"remoteAddr":"",
"conf":{
"httpAddr":"127.0.0.1:9900"
}
},
"center":{
"serviceName":"center",
"serviceType":"center",
"remoteAddr":"127.0.0.1:8090"
},
"session":{
"serviceName":"session",
"serviceType":"session",
"remoteAddr":""
},
"gate1":{
"serviceName":"gate1",
"serviceType":"gate",
"remoteAddr":"127.0.0.1:8070",
"conf":{
"MaxConnNum":1000,
"WsAddr":":7201",
"WsAddrOut":"127.0.0.1:7201",
"TcpAddr":":7200",
"TcpAddrOut":"127.0.0.1:7200"
}
},
"game1":{
"serviceName":"game1",
"serviceType":"game",
"remoteAddr":""
}
}
}
}