X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=app.psgi;h=b29127c24e3e1375ae8e65ea4c3ddddf98930beb;hb=a7e836f27d8959ad676632e859f7e9ad79595de8;hp=53721091fb1bf799c058206d811e4bfc12eaf186;hpb=8d7256911fcd2f44fc446f03acb39dd08e90024d;p=plack-app-gruntmaster.git diff --git a/app.psgi b/app.psgi index 5372109..b29127c 100644 --- a/app.psgi +++ b/app.psgi @@ -1,6 +1,6 @@ -#!/usr/bin/perl -w +#!/usr/bin/perl use v5.14; -no if $] >= 5.017011, warnings => 'experimental::smartmatch'; +use warnings; use Gruntmaster::Data; use Plack::App::Gruntmaster; @@ -8,9 +8,6 @@ use Plack::Builder; use Plack::Util; use Log::Log4perl; -use constant AUTH_TIMEOUT => 5 * 60; -use constant ACCESSLOG_FORMAT => 'combined'; - sub CONTENT_SECURITY_POLICY () { my $csp = <init_once('log.conf'); -my $access_logger = Log::Log4perl->get_logger('access'); $ENV{DBIC_NULLABLE_KEY_NOWARN} = 1; builder { enable_if { $_[0]->{PATH_INFO} eq '/ok' } sub { sub{ [200, [], []] }}; - enable 'AccessLog', format => ACCESSLOG_FORMAT, logger => sub { $access_logger->info(@_) }; enable 'ContentLength'; enable \&add_headers; enable 'Static', path => qr,^/static/,;