diff --git a/burguillos_info.json.example b/burguillos_info.json.example index 1d579da..9dbc8ab 100644 --- a/burguillos_info.json.example +++ b/burguillos_info.json.example @@ -4,5 +4,6 @@ "db": { "database": "example" }, - "base_url": "https://burguillos.info" + "base_url": "https://burguillos.info", + "listen": "https:localhost:3555" } diff --git a/lib/BurguillosInfo.pm b/lib/BurguillosInfo.pm index 720c647..52c612e 100644 --- a/lib/BurguillosInfo.pm +++ b/lib/BurguillosInfo.pm @@ -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} );