-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathconfig-example.js
101 lines (84 loc) · 2.97 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
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
var fs = require('fs');
var splitca = require('split-ca');
module.exports = {
/* Socket port to listen on */
port: 5566,
/* SSL configurations */
ssl: {
port: 5567,
options: {
ca: splitca('cert/cabundle.pem'),
key: fs.readFileSync('cert/server-key.pem'),
cert: fs.readFileSync('cert/server-cert.pem'),
}
},
/*
************************************************************************
*** The following options REQUIRE a redis database to function ! ***
************************************************************************
*/
multiprocess: {
enabled: false, // requires redis for IPC
processes: 1
},
partyList: false,
redis: {
host: "127.0.0.1",
port: 6379,
//password: null
},
/*
************************************************************************
*** The following options REQUIRE a MySQL database to function ! ***
************************************************************************
*/
// If you want to track how many users are online, set UserList: true.
Userlist: false,
/* Controls how many results a request for 'users_online' receives. */
maxUserResults: 100,
/* MySQL database connection info for janus-mysql-auth and janus-mysql-userlist */
MySQL_Hostname: 'localhost',
MySQL_Database: 'janusvr',
MySQL_Username: 'janusvr',
MySQL_Password: 'janusvr',
/* Authentication mode:
'none' - Will not attempt to authenticate users,
anyone can connect with any unused userId.
'optional' - Anyone can connect, but if userId has been registered
a password must be provided.
'required' - Only users with userids and passwords are allowed to connect.
*/
authMode: "none",
popularRooms: {
halfLife: 7 * 24 * 60 * 60 * 1000, // set halflife to 7 days
updateInterval: 3000, // interval between weight updates on the popular rooms
masterToken: "changethis"
},
/*
************************************************************************
*** The previous options REQUIRE a MySQL database to function ! ***
************************************************************************
*/
/* Plugins must be installed from npm, or manually created in node_module/ to be loaded. */
/* hookPlugins are called while parsing messages */
hookPlugins: {
logon: {
plugins: [
//" janus-mysql-auth"
]
},
enter_room: {
plugins: [
// "janus-mysql-popular"
]
}
},
/* methodPlugins add new commands to the server */
methodPlugins: {
// ping: { plugin: "janus-method-ping" }
},
/* intervalPlugins are called in intervals specified in seconds. */
intervalPlugins: [
//{ plugin: "janus-mysql-userlist-official", interval: 6 }
],
};