1
0
Fork 0

Compare commits

...

2 Commits

2 changed files with 20 additions and 3 deletions

View File

@ -1,4 +1,4 @@
HUGO_VERSION="0.37"
HUGO_VERSION="0.39"
HUGO_URL="https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_Linux-64bit.tar.gz"
@ -8,10 +8,11 @@ hugo:
curl -L $(HUGO_URL) > ./hugo.tar.gz
tar -xvf hugo.tar.gz
rm -f LICENSE.md README.md
preview: hugo
hugo server
public:
hugo
clean:
rm -rf public/
sync:
rsync -avz public/ uberspace-bascht:/var/www/virtual/bascht/bascht.com
rsync -avz --delete --progress public/ uberspace-bascht:/var/www/virtual/bascht/bascht.com/

16
static/.htaccess Normal file
View File

@ -0,0 +1,16 @@
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteCond %{ENV:HTTPS} !=on
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
RewriteCond %{HTTP_HOST} !=bascht.com
RewriteRule (.*) https://bascht.com/$1 [R=301,L]
ErrorDocument 404 /404.html
Header set Content-Security-Policy "default-src https: 'unsafe-eval' 'unsafe-inline'; img-src 'self' https://img.bascht.com https://static.media.ccc.de http://cdn.media.ccc.de"
Header set Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
Header set X-Content-Type-Options "nosniff"
Header set X-Frame-Options "SAMEORIGIN"
Header set X-XSS-Protection "1; mode=block"
Header set X-Respekt "Du schaust ja wirklich in die Header!"