Adding listen directive.

This commit is contained in:
sergiotarxz 2023-05-03 06:19:20 +02:00
parent 62f61541ad
commit 47f1bc43a1
2 changed files with 3 additions and 2 deletions

View File

@ -4,5 +4,6 @@
"db": {
"database": "example"
},
"base_url": "https://burguillos.info"
"base_url": "https://burguillos.info",
"listen": "https:localhost:3555"
}

View File

@ -19,7 +19,7 @@ sub startup ($self) {
);
my $config = $self->plugin('JSONConfig');
$self->config(
hypnotoad => { proxy => 1, listen => ['http://localhost:3000'] } );
hypnotoad => { proxy => 1, listen => [$self->config('listen') // 'http://localhost:3000'] } );
$self->config( css_version => int( rand(10000) ) );
$self->secrets( $self->config->{secrets} );