Adding hypnotoad support.
This commit is contained in:
parent
7a9870d517
commit
6b390359df
2
MANIFEST
2
MANIFEST
|
@ -1,7 +1,9 @@
|
||||||
.proverc
|
.proverc
|
||||||
AUTHORS
|
AUTHORS
|
||||||
bin/peertube-dl
|
bin/peertube-dl
|
||||||
|
bin/peertube-dl-hypnotoad
|
||||||
bin/peertube-dl-web
|
bin/peertube-dl-web
|
||||||
|
bin/peertube-dl-web.conf
|
||||||
cpanfile
|
cpanfile
|
||||||
lib/Peertube/DL.pm
|
lib/Peertube/DL.pm
|
||||||
lib/Peertube/DL/Downloaders.pm
|
lib/Peertube/DL/Downloaders.pm
|
||||||
|
|
|
@ -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->renderer->paths }, ( Peertube::DL::getDir() . '/Peertube/DL/templates' );
|
||||||
push @{ app->static->paths }, ( Peertube::DL::getDir() . '/Peertube/DL/public' );
|
push @{ app->static->paths }, ( Peertube::DL::getDir() . '/Peertube/DL/public' );
|
||||||
app->start;
|
|
||||||
|
|
||||||
|
my $config = plugin 'Config';
|
||||||
|
|
||||||
|
app->start;
|
||||||
|
|
|
@ -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',
|
||||||
|
}
|
||||||
|
};
|
2
cpanfile
2
cpanfile
|
@ -5,3 +5,5 @@ requires 'LWP::Protocol::https';
|
||||||
requires 'Mojolicious::Lite';
|
requires 'Mojolicious::Lite';
|
||||||
requires 'Test::Most';
|
requires 'Test::Most';
|
||||||
requires 'Test::MockObject';
|
requires 'Test::MockObject';
|
||||||
|
requires 'Mojo::Server::Hypnotoad';
|
||||||
|
requires 'Getopt::Long::Descriptive';
|
||||||
|
|
Loading…
Reference in New Issue