forked from ElevenGiants/eleven-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config_local.js.SAMPLE_PROD
80 lines (78 loc) · 1.42 KB
/
config_local.js.SAMPLE_PROD
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
71
72
73
74
75
76
77
78
79
80
'use strict';
/**
* Sample local configuration file for a "live" public environment.
* The values here need to be adjusted for the specific target server.
*/
module.exports = {
net: {
gameServers: {
gs01: {
host: 'THIS.GS.HOST.IP',
ports: [
// add as many worker processes as you like (probably best
// not to add more than the number of CPU cores, though)
1443,
1444,
1445,
1446
],
},
},
assetServer: {
host: 'YOUR.ASSET.SERVER.IP',
port: 8000,
},
},
pers: {
backEnd: {
module: 'rethink',
config: {
rethink: {
dbname: 'eleven_prod',
dbhost: 'localhost',
dbport: 28015,
dbauth: 'RETHINKDB_AUTH_KEY',
queryOpts: {
durability: 'hard',
noreply: false,
},
},
},
},
},
auth: {
backEnd: {
module: 'hmac',
config: {
hmac: {
// secret used for auth token HMAC calculation (set this
// to a random string):
secret: 'CHANGE-ME-OR-ELSE',
// minimum token lifetime in seconds:
timeStep: 600,
},
},
},
},
log: {
dir: '/var/log/eleven',
level: {
file: 'info',
stdout: 'fatal',
},
// enabling this has a significant performance impact:
includeLoc: false,
},
mon: {
statsd: {
prefix: 'prod',
},
},
debug: {
// consider security and stability implications before enabling the
// REPL server in a PROD environment
repl: {
enable: false,
},
},
};