X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=app.psgi;h=a4e0c34eca7da9c880ec0ee496a8e24e2be310c9;hb=a0aa934a68a90d784546588383363bdaed2f0bfb;hp=fd1bcac6e68776f6b2ae82b51df654c6d42e306c;hpb=b7c79e04cb3c8ea826ea1aac8049333564794536;p=gruntmaster-page.git diff --git a/app.psgi b/app.psgi index fd1bcac..a4e0c34 100644 --- a/app.psgi +++ b/app.psgi @@ -12,8 +12,22 @@ use Log::Log4perl; use Tie::Hash::Expire; use constant AUTH_TIMEOUT => 5 * 60; -use constant ACCESSLOG_FORMAT => 'combined'; -use constant CONTENT_SECURITY_POLICY => q,default-src 'none'; script-src 'self' static.mindcoding.ro www.google-analytics.com; style-src 'self' static.mindcoding.ro; img-src 'self' static.mindcoding.ro www.google-analytics.com; connect-src 'self',; +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 = <connect($ENV{GRUNTMASTER_DSN} // 'dbi:Pg:');