Skip to content

Commit

Permalink
HTTPS Listening option in EC
Browse files Browse the repository at this point in the history
  • Loading branch information
aalonsog committed Aug 3, 2015
1 parent 0349780 commit 0b42425
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions erizo_controller/erizoController/erizoController.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ GLOBAL.config.erizoController.publicIP = GLOBAL.config.erizoController.publicIP
GLOBAL.config.erizoController.hostname = GLOBAL.config.erizoController.hostname|| '';
GLOBAL.config.erizoController.port = GLOBAL.config.erizoController.port || 8080;
GLOBAL.config.erizoController.ssl = GLOBAL.config.erizoController.ssl || false;
GLOBAL.config.erizoController.listen_ssl = GLOBAL.config.erizoController.listen_ssl || false;
GLOBAL.config.erizoController.turnServer = GLOBAL.config.erizoController.turnServer || undefined;
if (config.erizoController.turnServer !== undefined) {
GLOBAL.config.erizoController.turnServer.url = GLOBAL.config.erizoController.turnServer.url || '';
Expand All @@ -40,7 +41,8 @@ var getopt = new Getopt([
['i' , 'publicIP=ARG' , 'Erizo Controller\'s public IP'],
['H' , 'hostname=ARG' , 'Erizo Controller\'s hostname'],
['p' , 'port' , 'Port where Erizo Controller will listen to new connections.'],
['S' , 'ssl' , 'Erizo Controller\'s hostname'],
['S' , 'ssl' , 'Enable SSL for clients'],
['s' , 'listen_ssl' , 'Enable HTTPS in server'],
['T' , 'turn-url' , 'Turn server\'s URL.'],
['U' , 'turn-username' , 'Turn server\'s username.'],
['P' , 'turn-password' , 'Turn server\'s password.'],
Expand Down Expand Up @@ -90,7 +92,7 @@ var log = logger.getLogger("ErizoController");

var server;

if (GLOBAL.config.erizoController.ssl) {
if (GLOBAL.config.erizoController.listen_ssl) {
var https = require('https');
var fs = require('fs');
var options = {
Expand Down
2 changes: 2 additions & 0 deletions scripts/licode_default.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ 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 true if erizoController listens in HTTPS. SSL certificates located in /cert
config.erizoController.listen_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
Expand Down

0 comments on commit 0b42425

Please sign in to comment.