X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=app.psgi;fp=app.psgi;h=b5fd756387632198ebf89e3cae6e8bacd0aada7f;hb=0a8209edec6578ec0c2e6fbc1f6462b1de75b72c;hp=eee1ad7b69211a6afa50e1d444c6a6c1ded1957f;hpb=0c0b6de0b23bd11b55f16c8b154f65ccc273c346;p=gruntmaster-page.git diff --git a/app.psgi b/app.psgi index eee1ad7..b5fd756 100644 --- a/app.psgi +++ b/app.psgi @@ -9,7 +9,6 @@ use Plack::Util; use Log::Log4perl; use constant AUTH_TIMEOUT => 5 * 60; -use constant ACCESSLOG_FORMAT => '%{X-Forwarded-For}i %l %u %t "%r" %>s %b "%{Referer}i" "%{User-agent}i"'; 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/,;