mirror of https://github.com/dani/vroom.git
Video conf based on SimpleWebRTC https://vroom.fws.fr/documentation
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
581 B
27 lines
581 B
10 years ago
|
#!/usr/bin/env perl
|
||
|
|
||
|
use strict;
|
||
|
use warnings;
|
||
|
use File::Basename;
|
||
10 years ago
|
use lib dirname($0) . '/../lib';
|
||
|
use Vroom::Conf;
|
||
10 years ago
|
|
||
10 years ago
|
chdir dirname($0) . '/..';
|
||
10 years ago
|
|
||
10 years ago
|
my $config = Vroom::Conf::get_conf();
|
||
10 years ago
|
|
||
|
$ENV{'PERL5LIB'} = 'lib';
|
||
10 years ago
|
$ENV{'MOJO_REVERSE_PROXY'} = 1;
|
||
10 years ago
|
|
||
|
if ($config->{'daemon.backend'} eq 'morbo'){
|
||
10 years ago
|
exec ('/usr/bin/morbo',
|
||
|
'-l', 'http://' . $config->{'daemon.listen_ip'} . ':' . $config->{'daemon.listen_port'},
|
||
|
'-w', 'conf/settings.ini',
|
||
|
'-w', 'lib',
|
||
|
'-w', 'templates',
|
||
|
'-v', 'vroom.pl');
|
||
10 years ago
|
}
|
||
|
else{
|
||
|
exec ('/usr/bin/hypnotoad', '-f', 'vroom.pl');
|
||
|
}
|