figbert.com-website

[ACTIVE] the website and home of figbert on the clearnet
git clone git://git.figbert.com/figbert.com-website.git
Log | Files | Refs | README | LICENSE

commit 979e4d239ed0eb86b715507d4cdf995fd5f6eafe
parent 9e1c9694b600ba22fd9092bab1e5b633805a5a1f
Author: FIGBERT <figbert@figbert.com>
Date:   Tue,  1 Sep 2020 12:14:53 -0700

:bento: Add Caddyfile

Diffstat:
ACaddyfile | 31+++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+), 0 deletions(-)

diff --git a/Caddyfile b/Caddyfile @@ -0,0 +1,31 @@ +www.figbert.com { + redir https://figbert.com{uri} + header -Server +} + +figbert.com { + root * /var/www/figbert.com/public + encode zstd gzip + file_server + header { + -Server + Content-Security-Policy "default-src 'none'; script-src https://gc.zgo.at; img-src 'self' https://figbert.goatcounter.com/count; media-src 'self'; style-src 'self'; frame-ancestors 'none'; base-uri 'none'; form-action 'none';" + Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" + Feature-Policy "accelerometer 'none'; ambient-light-sensor 'none'; autoplay 'self'; battery 'none'; camera 'none'; display-capture 'none'; document-domain 'none'; encrypted-media 'none'; execution-while-not-rendered 'none'; execution-while-out-of-viewport 'none'; fullscreen 'self'; geolocation 'none'; gyroscope 'none'; layout-animations 'none'; legacy-image-formats 'self'; magnetometer 'none'; microphone 'none'; midi 'none'; navigation-override 'none'; oversized-images 'self'; payment 'none'; picture-in-picture 'self'; publickey-credentials-get 'none'; sync-xhr 'none'; usb 'none'; vr 'none'; wake-lock 'none'; xr-spatial-tracking 'none';" + X-Content-Type-Options nosniff + X-Frame-Options DENY + X-XSS-Protection "1; mode=block" + Referrer-Policy strict-origin-when-cross-origin + Cache-Control max-age=2419200 + } + handle_errors { + @404 { + expression {http.error.status_code} == 404 + } + handle @404 { + rewrite 404.html + } + file_server + } +} +