Skip to content
Snippets Groups Projects
Verified Commit 82fdd5a4 authored by Andrej Ramašeuski's avatar Andrej Ramašeuski
Browse files

Zmena servery na hypnotaod, pridani konfigu

parent eb912f9c
No related branches found
No related tags found
No related merge requests found
......@@ -32,4 +32,4 @@ USER nobody
EXPOSE 3000
WORKDIR /opt/PiTube
CMD /opt/PiTube/script/pitube daemon
CMD hypnotoad -f /opt/PiTube/script/pitube
......@@ -11,10 +11,13 @@ use PiTube::Schema;
sub startup {
my $self = shift;
$self->plugin('PiTube::Helpers::OAuth2');
# Nacteni konfigurace
my $config = $self->plugin('Config');
$self->secrets([$ENV{SECRET}]);
$self->plugin('PiTube::Helpers::OAuth2');
my $home = Mojo::Home->new()->detect;
my $pg = Mojo::Pg->new
......
{
hypnotoad => {
workers => 10,
proxy => 1,
pid_file => '/var/tmp/hypnotoad.pid',
listen => ['http://*:3000']
}
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment