Adding listen shortcut.

This commit is contained in:
Sergiotarxz 2024-11-02 21:27:23 +01:00
parent 3385809e09
commit 1cd463434a

View File

@ -6,6 +6,12 @@ sub startup ($self) {
# Load configuration from config file
my $config = $self->plugin('NotYAMLConfig');
$self->config(
hypnotoad => {
proxy => 1,
listen => [ $self->config('listen') // 'http://localhost:3000' ]
}
);
# Configure the application
$self->secrets( $config->{secrets} );