forked from sidgtl/ping-pong
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
64 lines (64 loc) · 1.82 KB
/
config.js
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
module.exports = {
development: {
clientUrl: 'http://10.0.0.176',
clientPort: 3000,
wsPort: 31385,
cardReaderPort: 31386,
database: {
client: 'mysql',
connection: {
host: '127.0.0.1',
port: '3306',
user: 'pingpong',
password: 'pingpong',
database: 'pingpong',
},
migrations: {
directory: __dirname + '/migrations',
tableName: 'migrations'
}
}
},
production: {
clientUrl: 'http://pingpong.local',
clientPort: 3000,
wsPort: 31385,
database: {
client: 'mysql',
connection: {
host: '127.0.0.1',
port: 3306,
user: 'pingpong',
password: 'pingpong',
database: 'pingpong',
},
migrations: {
directory: __dirname + '/migrations',
tableName: 'migrations'
}
},
cardReaderPort: 31386
},
global: {
sparkCore: {
accessToken: undefined,
id: undefined
},
serverSwitchLimit: 2, // How many points before service switches
serverSwitchThreshold: 10, // When both players have reached this threshold, the server switches every time
maxScore: 11,
mustWinBy: 2,
minPlayers: 2,
maxPlayers: 2,
winningViewDuration: 12000, // The duration to show the winning view for before returning to the leaderboard
feelers: {
pingInterval: 5000,
pingThreshold: 250,
undoThreshold: 1500
},
cardReader: {
pingInterval: 30000,
pingThreshold: 250
}
}
};