forked from lynckia/licode
-
Notifications
You must be signed in to change notification settings - Fork 1
/
licode_config.js.erb
110 lines (88 loc) · 5.03 KB
/
licode_config.js.erb
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
109
110
var config = {}
/*********************************************************
COMMON CONFIGURATION
It's used by ErizoController, ErizoAgent and ErizoJS
**********************************************************/
config.rabbit = {};
config.rabbit.host = 'localhost'; //default value: 'localhost'
config.rabbit.port = 5672; //default value: 5672
config.logger = {};
config.logger.config_file = '../log4js_configuration.json'; //default value: "../log4js_configuration.json"
/*********************************************************
CLOUD PROVIDER CONFIGURATION
It's used by ErizoController
**********************************************************/
config.cloudProvider = {};
config.cloudProvider.name = '';
//In Amazon Ec2 instances you can specify the zone host. By default is 'ec2.us-east-1a.amazonaws.com'
config.cloudProvider.host = '';
config.cloudProvider.accessKey = '';
config.cloudProvider.secretAccessKey = '';
/*********************************************************
ERIZO CONTROLLER CONFIGURATION
**********************************************************/
config.erizoController = {};
//Use undefined to run clients without Stun
config.erizoController.stunServerUrl = 'stun:stun.l.google.com:19302'; // default value: 'stun:stun.l.google.com:19302'
// Default and max video bandwidth parameters to be used by clients
config.erizoController.defaultVideoBW = 300; //default value: 300
config.erizoController.maxVideoBW = 1000;
// Public erizoController IP for websockets (useful when behind NATs)
// Use '' to automatically get IP from the interface
config.erizoController.publicIP = '<%= `curl http://169.254.169.254/latest/meta-data/public-ipv4` %>'; //default value: ''
// Use '' to use the public IP address instead of a hostname
config.erizoController.hostname = ''; //default value: ''
config.erizoController.port = 8080; //default value: 8080
// Use true if clients communicate with erizoController over SSL
config.erizoController.ssl = false; //default value: false
// Use the name of the inferface you want to bind to for websockets
// config.erizoController.networkInterface = 'eth1' // default value: undefined
//Use undefined to run clients without Turn
config.erizoController.turnServer = {}; // default value: undefined
config.erizoController.turnServer.url = ''; // default value: null
config.erizoController.turnServer.username = ''; // default value: null
config.erizoController.turnServer.password = ''; // default value: null
config.erizoController.warning_n_rooms = 15; // default value: 15
config.erizoController.limit_n_rooms = 20; // default value: 20
config.erizoController.interval_time_keepAlive = 1000; // default value: 1000
// Roles to be used by services
config.erizoController.roles =
{"presenter": {"publish": true, "subscribe": true, "record": true},
"viewer": {"subscribe": true},
"viewerWithData": {"subscribe": true, "publish": {"audio": false, "video": false, "screen": false, "data": true}}}; // default value: {"presenter":{"publish": true, "subscribe":true, "record":true}, "viewer":{"subscribe":true}, "viewerWithData":{"subscribe":true, "publish":{"audio":false,"video":false,"screen":false,"data":true}}}
// If true, erizoController sends report to rabbitMQ queue "report_handler"
config.erizoController.report = {
session_events: false, // Session level events -- default value: false
connection_events: false, // Connection (ICE) level events -- default value: false
rtcp_stats: false // RTCP stats -- default value: false
};
// If undefined, the path will be /tmp/
config.erizoController.recording_path = undefined; // default value: undefined
/*********************************************************
ERIZO AGENT CONFIGURATION
**********************************************************/
config.erizoAgent = {};
// Max processes that ErizoAgent can run
config.erizoAgent.maxProcesses = 1; // default value: 1
// Number of precesses that ErizoAgent runs when it starts. Always lower than or equals to maxProcesses.
config.erizoAgent.prerunProcesses = 1; // default value: 1
// Public erizoAgent IP for ICE candidates (useful when behind NATs)
// Use '' to automatically get IP from the interface
config.erizoAgent.publicIP = '<%= `curl http://169.254.169.254/latest/meta-data/public-ipv4` %>'; //default value: ''
// Use the name of the inferface you want to bind for ICE candidates
// config.erizoAgent.networkInterface = 'eth1' // default value: undefined
/*********************************************************
ERIZO JS CONFIGURATION
**********************************************************/
config.erizo = {};
//STUN server IP address and port to be used by the server.
//if '' is used, the address is discovered locally
config.erizo.stunserver = ''; // default value: ''
config.erizo.stunport = 0; // default value: 0
//note, this won't work with all versions of libnice. With 0 all the available ports are used
config.erizo.minport = 56000; // default value: 0
config.erizo.maxport = 57000; // default value: 0
/***** END *****/
// Following lines are always needed.
var module = module || {};
module.exports = config;