forked from sidgtl/ping-pong
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.example.js
64 lines (64 loc) · 1.82 KB
/
config.example.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: undefined,
clientPort: undefined,
wsPort: undefined,
cardReaderPort: undefined,
database: {
client: 'mysql',
connection: {
host: undefined,
port: undefined,
user: undefined,
password: undefined,
database: undefined,
},
migrations: {
directory: __dirname + '/migrations',
tableName: 'migrations'
}
}
},
production: {
clientUrl: undefined,
clientPort: undefined,
wsPort: undefined,
database: {
client: 'mysql',
connection: {
host: undefined,
port: undefined,
user: undefined,
password: undefined,
database: undefined,
},
migrations: {
directory: __dirname + '/migrations',
tableName: 'migrations'
}
},
cardReaderPort: undefined
},
global: {
sparkCore: {
accessToken: undefined,
id: undefined
},
serverSwitchLimit: 5, // How many points before service switches
serverSwitchThreshold: 20, // When both players have reached this threshold, the server switches every time
maxScore: 21,
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
}
}
};