grgr.me

latest commits to https://grgr.me/
Log | Files | Refs

commit a9dc77235bad4e921d2ae61edd28b83866970528
parent 0fd06c64353a7968d252cc89c1ecb9dd9a151e4f
Author: corndog <cauchyn@firemail.cc>
Date:   Thu,  4 Oct 2018 20:32:37 -0700

Revert "Snippets not yet supported by caddy

version"

Directive "index" was also missing so it was just
easier to upgrade manually.

Diffstat:
Caddyfile | 14++++++++++++++
caddy/header | 5-----
caddy/log | 3---
3 files changed, 14 insertions(+), 8 deletions(-)

diff --git a/Caddyfile b/Caddyfile @@ -1,5 +1,19 @@ import caddy/redirects +(header) { + header / { + Content-Security-Policy "default-src 'self' https: 'unsafe-eval' 'unsafe-inline'" + Referrer-Policy "same-origin" + X-Frame-Options "DENY" + } +} + +(log) { + log / .log/access.log "{combined}" { + rotate { } + } +} + grgr.me { import caddy/secret import header diff --git a/caddy/header b/caddy/header @@ -1,5 +0,0 @@ -header / { - Content-Security-Policy "default-src 'self' https: 'unsafe-eval' 'unsafe-inline'" - Referrer-Policy "same-origin" - X-Frame-Options "DENY" -} diff --git a/caddy/log b/caddy/log @@ -1,3 +0,0 @@ -log / .log/access.log "{combined}" { - rotate { } -}