175 lines
3.7 KiB
JSON
175 lines
3.7 KiB
JSON
{
|
|
"netlib": {
|
|
"SrvInfo": {
|
|
"Name": "GameServer",
|
|
"Type": 7,
|
|
"Id": 777,
|
|
"AreaID": 1,
|
|
"Data": "",
|
|
"Banner": [
|
|
"=================",
|
|
"game server",
|
|
"================="
|
|
]
|
|
},
|
|
"IoServices": [
|
|
{
|
|
"Id": 777,
|
|
"Type": 7,
|
|
"AreaId": 1,
|
|
"Name": "GameService",
|
|
"Ip": "127.0.0.1",
|
|
"Port": 0,
|
|
"Protocol": "tcp",
|
|
"Path": "/",
|
|
"MaxDone": 400000,
|
|
"MaxPend": 2000000,
|
|
"MaxPacket": 65535,
|
|
"MaxConn": 10000,
|
|
"RcvBuff": 4096000,
|
|
"SndBuff": 10240000,
|
|
"WriteTimeout": 30,
|
|
"ReadTimeout": 30,
|
|
"IsInnerLink": true,
|
|
"NoDelay": true,
|
|
"SupportFragment": true,
|
|
"AuthKey": "1234567890",
|
|
"FilterChain": [
|
|
"session-filter-trace",
|
|
"session-filter-auth"
|
|
],
|
|
"HandlerChain": [
|
|
"session-srv-registe",
|
|
"handler-game-close"
|
|
]
|
|
},
|
|
{
|
|
"Id": 501,
|
|
"Type": 5,
|
|
"AreaId": 1,
|
|
"Name": "ManagerService",
|
|
"Ip": "127.0.0.1",
|
|
"Port": 3002,
|
|
"MaxDone": 200,
|
|
"MaxPend": 200,
|
|
"MaxPacket": 65535,
|
|
"MaxConn": 10,
|
|
"RcvBuff": 8192,
|
|
"SndBuff": 8192,
|
|
"WriteTimeout": 30,
|
|
"ReadTimeout": 30,
|
|
"IsInnerLink": true,
|
|
"NoDelay": true,
|
|
"IsClient": true,
|
|
"IsAutoReconn": true,
|
|
"SupportFragment": true,
|
|
"AuthKey": "1234567890",
|
|
"FilterChain": [
|
|
"session-filter-auth"
|
|
],
|
|
"HandlerChain": [
|
|
"session-srv-registe",
|
|
"srv-service-handler"
|
|
]
|
|
},
|
|
{
|
|
"Id": 901,
|
|
"Type": 9,
|
|
"AreaId": 1,
|
|
"Name": "RobotService",
|
|
"Ip": "127.0.0.1",
|
|
"Port": 9003,
|
|
"MaxDone": 20000,
|
|
"MaxPend": 20000,
|
|
"MaxPacket": 65535,
|
|
"MaxConn": 1,
|
|
"RcvBuff": 819200,
|
|
"SndBuff": 819200,
|
|
"WriteTimeout": 300,
|
|
"ReadTimeout": 300,
|
|
"IsInnerLink": true,
|
|
"NoDelay": true,
|
|
"IsClient": true,
|
|
"IsAutoReconn": true,
|
|
"SupportFragment": true,
|
|
"AuthKey": "1234567890",
|
|
"FilterChain": [
|
|
"session-filter-auth"
|
|
],
|
|
"HandlerChain": [
|
|
"session-srv-registe",
|
|
"srv-service-handler"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"tx": {
|
|
"TxSkeletonName": "github.com/idealeak/goserver/srvlib/txcommskeleton"
|
|
},
|
|
"module": {
|
|
"Options": {
|
|
"QueueBacklog": 1024,
|
|
"MaxDone": 1024,
|
|
"Interval": 100
|
|
}
|
|
},
|
|
"executor": {
|
|
"Options": {
|
|
"QueueBacklog": 1024,
|
|
"MaxDone": 1024,
|
|
"Interval": 0
|
|
},
|
|
"Worker": {
|
|
"WorkerCnt": 8,
|
|
"Options": {
|
|
"QueueBacklog": 1024,
|
|
"MaxDone": 1024,
|
|
"Interval": 0
|
|
}
|
|
}
|
|
},
|
|
"timer": {
|
|
"Options": {
|
|
"QueueBacklog": 1024,
|
|
"MaxDone": 1024,
|
|
"Interval": 100
|
|
}
|
|
},
|
|
"cmdline": {
|
|
"SupportCmdLine": true
|
|
},
|
|
"signal": {
|
|
"SupportSignal": true
|
|
},
|
|
"common": {
|
|
"AppId": "5c56d1644966f078bfb90c71",
|
|
"IsDevMode": true
|
|
},
|
|
"profile": {
|
|
"SlowMS": 500
|
|
},
|
|
"etcd": {
|
|
"Url": ["127.0.0.1:2379"],
|
|
"UserName": "",
|
|
"Password": "",
|
|
"DialTimeout": 60
|
|
},
|
|
"costum": {
|
|
"MgoRpcCliNet": "tcp",
|
|
"MgoRpcCliAddr": "127.0.0.1:8999",
|
|
"MgoRpcCliReconnInterV": 3,
|
|
"RabbitMQURL": "amqp://win88:123456@127.0.0.1:5672/win88",
|
|
"RMQExchange": "win88",
|
|
"RMQPublishBacklog": 1024
|
|
},
|
|
"webapi": {
|
|
"GameApiURL": "http://127.0.0.1:8000/api/game_srv"
|
|
},
|
|
"data": {
|
|
"RootPath": "../data",
|
|
"LoadLib": true
|
|
},
|
|
"i18n": {
|
|
"RootPath": "../data/i18n"
|
|
}
|
|
} |