forked from sergiotarxz/Peertube-dl
Adding hypnotoad support.
This commit is contained in:
parent
7a9870d517
commit
6b390359df
2
MANIFEST
2
MANIFEST
@ -1,7 +1,9 @@
|
||||
.proverc
|
||||
AUTHORS
|
||||
bin/peertube-dl
|
||||
bin/peertube-dl-hypnotoad
|
||||
bin/peertube-dl-web
|
||||
bin/peertube-dl-web.conf
|
||||
cpanfile
|
||||
lib/Peertube/DL.pm
|
||||
lib/Peertube/DL/Downloaders.pm
|
||||
|
7
bin/peertube-dl-hypnotoad
Executable file
7
bin/peertube-dl-hypnotoad
Executable file
@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env perl
|
||||
|
||||
use Mojo::Server::Hypnotoad;
|
||||
use File::Basename;
|
||||
|
||||
my $hypnotoad = Mojo::Server::Hypnotoad->new;
|
||||
$hypnotoad->run( dirname(__FILE__) . '/peertube-dl-web' );
|
@ -40,5 +40,7 @@ post '/proxy_to_get' => sub {
|
||||
|
||||
push @{ app->renderer->paths }, ( Peertube::DL::getDir() . '/Peertube/DL/templates' );
|
||||
push @{ app->static->paths }, ( Peertube::DL::getDir() . '/Peertube/DL/public' );
|
||||
app->start;
|
||||
|
||||
my $config = plugin 'Config';
|
||||
|
||||
app->start;
|
||||
|
9
bin/peertube-dl-web.conf
Normal file
9
bin/peertube-dl-web.conf
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
hypnotoad => {
|
||||
listen => ['http://127.0.0.1:3001'],
|
||||
workers => 6,
|
||||
clients => 3,
|
||||
proxy => 1,
|
||||
pid_file => $ENV{PIDFILE} || '/var/run/peertube-dl-web.pid',
|
||||
}
|
||||
};
|
Loading…
Reference in New Issue
Block a user