-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig-sample.js
55 lines (49 loc) · 1.66 KB
/
config-sample.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
/**
* This a sample file you will need to rename this file to config.js also update it with your environment details
*/
var config = {};
config.ssl_key = '/home/example.com/homedir/ssl/domain.key'; // Replace by real path
config.ssl_cert = '/home/example.com/homedir/ssl/domain.crt'; // Replace by real path
config.servers = {
/**
* Shared secret
*
* A possible way to generate a random secret is by running the following command from a unix shell:
* tr -c -d '0123456789abcdefghijklmnopqrstuvwxyz' </dev/urandom | dd bs=32 count=1 2>/dev/null;echo
*
* also added to MoodleFreak Webcast settings
* /admin/settings.php?section=modsettingopenwebinar
*/
'abcd123456789': {
/**
* Hostname used for namespace and validation of the io request
* The domain where moodle is hosted on
*/
hostname : 'example.com',
/**
* namespace
* please keep it short and alpha_numeric
*/
namespace : 'example_live',
/**
* Callback url for saving the message buffer to moodle1
* Should always end with this /mod/openwebinar/api.php?action=chatlog
*/
callback : 'http://example.com/mod/openwebinar/api.php?action=chatlog'
},
/**
* Note: you could add more servers on a single node chat server
*
* 'dcba987654321': {
hostname : 'example2.com',
namespace : 'example2_live',
callback : 'http://example2.com/mod/openwebinar/api.php?action=chatlog'
},
*/
};
/**
* Port number we want to run on
* @type number
*/
config.port = process.env.PORT || 3001;
module.exports = config;