-
Notifications
You must be signed in to change notification settings - Fork 23
/
symple.json
41 lines (35 loc) · 969 Bytes
/
symple.json
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
{
/*
The port to listen on (default: 4500).
If `process.env.PORT` is set, the env value will be used instead.
Port 443 should always be used for SSL.
*/
"port" : 4500, /* 443 */
/*
Session time-to-live in minutes (Redis required, default: 15 minutes)
This is the duration of time before sessions expire after the client disconnects.
If set to `-1` the session will never expire.
*/
"sessionTTL" : 15,
/* Enable or disable authentication (Redis required) */
"authentication" : false,
/* Enable users to dynamically join and leave rooms (Redis required) */
"dynamicRooms" : true,
/*
Redis configuration
*/
"redis" : "redis://localhost:6379",
/* SSL configuration */
"ssl" : {
"enabled" : false,
"key" : "ssl/symple.key",
"cert" : "ssl/symple.crt"
},
/*
CORS configuration. See https://socket.io/docs/v4/handling-cors/
*/
"cors" : {
"origin": true,
"credentials": true
}
}