initial commit of poker game
This commit is contained in:
13
game-server/config/adminServer.json
Normal file
13
game-server/config/adminServer.json
Normal file
@@ -0,0 +1,13 @@
|
||||
[{
|
||||
"type": "connector",
|
||||
"token": "agarxhqb98rpajloaxn34ga8xrunpagkjwlaw3ruxnpaagl29w4rxn"
|
||||
}, {
|
||||
"type": "chat",
|
||||
"token": "agarxhqb98rpajloaxn34ga8xrunpagkjwlaw3ruxnpaagl29w4rxn"
|
||||
},{
|
||||
"type": "game",
|
||||
"token": "agarxhqb98rpajloaxn34ga8xrunpagkjwlaw3ruxnpaagl29w4rxn"
|
||||
},{
|
||||
"type": "gate",
|
||||
"token": "agarxhqb98rpajloaxn34ga8xrunpagkjwlaw3ruxnpaagl29w4rxn"
|
||||
}]
|
16
game-server/config/adminUser.json
Normal file
16
game-server/config/adminUser.json
Normal file
@@ -0,0 +1,16 @@
|
||||
[{
|
||||
"id": "user-1",
|
||||
"username": "admin",
|
||||
"password": "admin",
|
||||
"level": 1
|
||||
}, {
|
||||
"id": "user-2",
|
||||
"username": "monitor",
|
||||
"password": "monitor",
|
||||
"level": 2
|
||||
},{
|
||||
"id": "user-3",
|
||||
"username": "test",
|
||||
"password": "test",
|
||||
"level": 2
|
||||
}]
|
63
game-server/config/bots.json
Normal file
63
game-server/config/bots.json
Normal file
@@ -0,0 +1,63 @@
|
||||
{
|
||||
"config" : {
|
||||
"enabled" : true,
|
||||
"joinInterval" : {
|
||||
"min" : 3,
|
||||
"max" : 3
|
||||
},
|
||||
"actionInterval" : {
|
||||
"min" : 1,
|
||||
"max" : 3
|
||||
},
|
||||
"gamesToPlay" : {
|
||||
"min" : 1,
|
||||
"max" : 1
|
||||
},
|
||||
"buyIn" : 1000,
|
||||
"minBots" : 7,
|
||||
"minPlayers" : 3,
|
||||
"validateChips" : false
|
||||
},
|
||||
"bots" : [
|
||||
{
|
||||
"username": "bot1",
|
||||
"password": "bot1",
|
||||
"email": "bot1@poker-stack.com"
|
||||
},
|
||||
{
|
||||
"username": "bot2",
|
||||
"password": "bot2",
|
||||
"email": "bot2@poker-stack.com"
|
||||
},
|
||||
{
|
||||
"username": "bot3",
|
||||
"password": "bot3",
|
||||
"email": "bot3@poker-stack.com"
|
||||
},
|
||||
{
|
||||
"username": "bot4",
|
||||
"password": "bot4",
|
||||
"email": "bot4@poker-stack.com"
|
||||
},
|
||||
{
|
||||
"username": "bot5",
|
||||
"password": "bot5",
|
||||
"email": "bot5@poker-stack.com"
|
||||
},
|
||||
{
|
||||
"username": "bot6",
|
||||
"password": "bot6",
|
||||
"email": "bot6@poker-stack.com"
|
||||
},
|
||||
{
|
||||
"username": "bot7",
|
||||
"password": "bot7",
|
||||
"email": "bot7@poker-stack.com"
|
||||
},
|
||||
{
|
||||
"username": "bot8",
|
||||
"password": "bot8",
|
||||
"email": "bot8@poker-stack.com"
|
||||
}
|
||||
]
|
||||
}
|
10
game-server/config/gameSettings.json
Normal file
10
game-server/config/gameSettings.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"gameMode" : {
|
||||
"normal" : {
|
||||
"timeout" : 30
|
||||
},
|
||||
"fast" : {
|
||||
"timeout" : 15
|
||||
}
|
||||
}
|
||||
}
|
125
game-server/config/log4js.json
Normal file
125
game-server/config/log4js.json
Normal file
@@ -0,0 +1,125 @@
|
||||
{
|
||||
"appenders": [
|
||||
{
|
||||
"type": "console"
|
||||
},
|
||||
{
|
||||
"type": "file",
|
||||
"filename": "${opts:base}/logs/con-log-${opts:serverId}.log",
|
||||
"pattern": "connector",
|
||||
"maxLogSize": 1048576,
|
||||
"layout": {
|
||||
"type": "basic"
|
||||
},
|
||||
"backups": 5,
|
||||
"category": "con-log"
|
||||
},
|
||||
{
|
||||
"type": "file",
|
||||
"filename": "${opts:base}/logs/rpc-log-${opts:serverId}.log",
|
||||
"maxLogSize": 1048576,
|
||||
"layout": {
|
||||
"type": "basic"
|
||||
},
|
||||
"backups": 5,
|
||||
"category": "rpc-log"
|
||||
},
|
||||
{
|
||||
"type": "file",
|
||||
"filename": "${opts:base}/logs/forward-log-${opts:serverId}.log",
|
||||
"maxLogSize": 1048576,
|
||||
"layout": {
|
||||
"type": "basic"
|
||||
},
|
||||
"backups": 5,
|
||||
"category": "forward-log"
|
||||
},
|
||||
{
|
||||
"type": "file",
|
||||
"filename": "${opts:base}/logs/rpc-debug-${opts:serverId}.log",
|
||||
"maxLogSize": 1048576,
|
||||
"layout": {
|
||||
"type": "basic"
|
||||
},
|
||||
"backups": 5,
|
||||
"category": "rpc-debug"
|
||||
},
|
||||
{
|
||||
"type": "file",
|
||||
"level": "DEBUG",
|
||||
"filename": "${opts:base}/logs/game-log-${opts:serverId}.log",
|
||||
"maxLogSize": 1048576,
|
||||
"layout": {
|
||||
"type": "basic"
|
||||
},
|
||||
"backups": 5,
|
||||
"category": "game-log"
|
||||
},
|
||||
{
|
||||
"type": "file",
|
||||
"filename": "${opts:base}/logs/crash.log",
|
||||
"maxLogSize": 1048576,
|
||||
"layout": {
|
||||
"type": "basic"
|
||||
},
|
||||
"backups": 5,
|
||||
"category":"crash-log"
|
||||
},
|
||||
{
|
||||
"type": "file",
|
||||
"filename": "${opts:base}/logs/admin.log",
|
||||
"maxLogSize": 1048576,
|
||||
"layout": {
|
||||
"type": "basic"
|
||||
}
|
||||
,"backups": 5,
|
||||
"category":"admin-log"
|
||||
},
|
||||
{
|
||||
"type": "file",
|
||||
"filename": "${opts:base}/logs/pomelo.log",
|
||||
"maxLogSize": 1048576,
|
||||
"layout": {
|
||||
"type": "basic"
|
||||
}
|
||||
,"backups": 5,
|
||||
"category":"pomelo"
|
||||
},
|
||||
{
|
||||
"type": "file",
|
||||
"filename": "${opts:base}/logs/pomelo-admin.log",
|
||||
"maxLogSize": 1048576,
|
||||
"layout": {
|
||||
"type": "basic"
|
||||
}
|
||||
,"backups": 5,
|
||||
"category":"pomelo-admin"
|
||||
},
|
||||
{
|
||||
"type": "file",
|
||||
"filename": "${opts:base}/logs/pomelo-rpc.log",
|
||||
"maxLogSize": 1048576,
|
||||
"layout": {
|
||||
"type": "basic"
|
||||
}
|
||||
,"backups": 5,
|
||||
"category":"pomelo-rpc"
|
||||
}
|
||||
],
|
||||
|
||||
"levels": {
|
||||
"rpc-log" : "ERROR",
|
||||
"forward-log": "ERROR",
|
||||
"con-log" : "ERROR",
|
||||
"rpc-debug": "ERROR",
|
||||
"crash-log" : "ERROR",
|
||||
"admin-log": "ERROR",
|
||||
"pomelo" : "ERROR",
|
||||
"pomelo-admin": "ERROR",
|
||||
"pomelo-rpc": "ERROR"
|
||||
},
|
||||
|
||||
"replaceConsole": true,
|
||||
|
||||
"lineDebug": false
|
||||
}
|
14
game-server/config/master.json
Normal file
14
game-server/config/master.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"development":{
|
||||
"id":"master-server-1",
|
||||
"host":"127.0.0.1",
|
||||
"port":3005
|
||||
},
|
||||
|
||||
"production":{
|
||||
"id":"master-server-1",
|
||||
"host":"127.0.0.1",
|
||||
"port":3005
|
||||
}
|
||||
|
||||
}
|
7
game-server/config/redis.json
Normal file
7
game-server/config/redis.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"host" : "localhost",
|
||||
"port" : 6379,
|
||||
"opts" : {
|
||||
"auth_pass" : "secretredispass"
|
||||
}
|
||||
}
|
30
game-server/config/servers.json
Normal file
30
game-server/config/servers.json
Normal file
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"development":{
|
||||
"connector":[
|
||||
{"id":"connector-server-1", "host":"127.0.0.1", "port":4050, "clientPort": 3050, "frontend": true}
|
||||
],
|
||||
"game":[
|
||||
{"id":"game-server-1", "host":"127.0.0.1", "port":6050}
|
||||
],
|
||||
"chat": [
|
||||
{"id":"chat-server-1","host":"127.0.0.1","port":3450}
|
||||
],
|
||||
"gate":[
|
||||
{"id": "gate-server-1", "host": "127.0.0.1", "clientPort": 3014, "frontend": true}
|
||||
]
|
||||
},
|
||||
"production":{
|
||||
"connector":[
|
||||
{"id":"connector-server-1", "host":"127.0.0.1", "port":4050, "clientPort": 3050, "frontend": true}
|
||||
],
|
||||
"game":[
|
||||
{"id":"game-server-1", "host":"127.0.0.1", "port":6050}
|
||||
],
|
||||
"chat": [
|
||||
{"id":"chat-server-1","host":"127.0.0.1","port":3450}
|
||||
],
|
||||
"gate":[
|
||||
{"id": "gate-server-1", "host": "127.0.0.1", "clientPort": 3014, "frontend": true}
|
||||
]
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user