]> iEval git - plack-app-gruntmaster.git/commitdiff
Drop cloudflare
authorMarius Gavrilescu <marius@ieval.ro>
Wed, 1 Apr 2015 13:58:55 +0000 (16:58 +0300)
committerMarius Gavrilescu <marius@ieval.ro>
Wed, 1 Apr 2015 14:01:07 +0000 (17:01 +0300)
app.psgi
make_static.PL
tmpl/skel.en

index 597e94167d5eebc968ea5e80ce6f66dd0937fe99..6a1125a4f283b3d7d976f561c11a0707c12dc295 100644 (file)
--- a/app.psgi
+++ b/app.psgi
@@ -16,8 +16,8 @@ form-action 'self'
 frame-ancestors 'none'
 img-src 'self' https://static.mindcoding.ro
 referrer origin-when-cross-origin
-script-src https://static.mindcoding.ro/static/js.js
-style-src https://static.mindcoding.ro/static/css/
+script-src 'self'
+style-src 'self'
 CSP
        chomp $csp;
        $csp =~ s/\n/; /gr;
@@ -41,7 +41,7 @@ sub add_headers {
                my $resp = $app->($_[0]);
                my $hdrs = Plack::Util::headers($resp->[1]);
                $hdrs->set('Content-Security-Policy', CONTENT_SECURITY_POLICY);
-               $hdrs->set('Link', '<https://static.mindcoding.ro/static/slate.css>; rel=stylesheet') if $hdrs->get('Content-Type') =~ m,^text/html,;
+               $hdrs->set('Link', '</static/slate.css>; rel=stylesheet') if $hdrs->get('Content-Type') =~ m,^text/html,;
                $resp->[1] = $hdrs->headers;
                $resp;
        }
index f0fa945418269bdce4db180fadcefdd5f91bd877..489652a421a4db89db15774b32b758e2f8d95664 100644 (file)
@@ -28,7 +28,7 @@ sub make_sprite {
 
        $maker->print_css(
                filename        => 'css/logos.css',
-               sprite_filename => 'https://static.mindcoding.ro/static/logos.png',
+               sprite_filename => '/static/logos.png',
        );
 
        system 'pngnq-s9', '-s1', 'static/logos.png';
@@ -96,7 +96,7 @@ sub _get_stylesheet_string {
        @ret = sort @ret;
        unshift @ret, <<EOF;
 a.logo {
-       background-image: url("https://static.mindcoding.ro/static/logos.png");
+       background-image: url("/static/logos.png");
        background-repeat: no-repeat;
        display: inline-block;
        vertical-align: middle;
index 82cdfc3bdb36d16a2408d82308d5db6312b4bf1d..a6815336cd2d97ca96be7213e75144e5509246a7 100644 (file)
@@ -3,11 +3,11 @@
 <meta charset="utf-8">
 <meta name="viewport" content="width=device-width, initial-scale=1.0">
 
-<link href="https://static.mindcoding.ro/static/favicon.png" rel="shortcut icon">
-<link href="https://static.mindcoding.ro/static/css/cyborg.css" title="cyborg" rel="alternate  stylesheet">
-<link href="https://static.mindcoding.ro/static/css/slate.css" title="slate" rel="stylesheet">
-<link href="https://static.mindcoding.ro/static/css/readable.css" title="readable" rel="alternate stylesheet">
-<script src="https://static.mindcoding.ro/static/js.js" type="text/javascript" async defer></script>
+<link href="/static/favicon.png" rel="shortcut icon">
+<link href="/static/css/cyborg.css" title="cyborg" rel="alternate  stylesheet">
+<link href="/static/css/slate.css" title="slate" rel="stylesheet">
+<link href="/static/css/readable.css" title="readable" rel="alternate stylesheet">
+<script src="/static/js.js" type="text/javascript" async defer></script>
 
 <body>
 <nav role="navigation">
This page took 0.030834 seconds and 4 git commands to generate.