-
Notifications
You must be signed in to change notification settings - Fork 13
/
config_local.js.SAMPLE_PROD
108 lines (106 loc) · 2.37 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
'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: {
// IP/hostname the AMF and RPC services will bind to
host: 'THIS.GS.HOST.LOCAL.IP',
// optional externally reachable IP/hostname, if 'host' above is
// not a public IP address (e.g. when using NAT)
publicHost: 'THIS.GS.HOST.PUBLIC.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,
},
},
limits: {
// maximum number of concurrent client connections per worker (workers
// may refuse to accept new connections once this number is reached)
maxSessions: 10,
},
pers: {
backEnd: {
module: 'rethink',
config: {
rethink: {
dbname: 'eleven_prod',
dbtable: 'gamedata',
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,
},
},
slack: {
// the in-game chat group integration requires a "bot user" to be set
// up in Slack, and the resulting API token needs to be set here
chat: {
token: 'xoxo-1234567890-T0keNfr0mSL4cK',
groups: {
RA512UITCLA22AD: 'livehelp',
RA9118JTCLA204I: 'global',
},
},
// server notifications/alerts need an "incoming WebHook" configured
// in Slack, and its URL added here
notify: {
webhookUrl: 'https://hooks.slack.com/services/XYZ/asdfghjkl',
channel: 'server-admins',
botName: 'gameserver PROD',
},
},
};