Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ logo_title: Julio Trigo's logo

author: Julio Trigo

include: [_redirects]
include: [_redirects, _headers]

show_excerpts: true # set to true to show excerpts on the homepage
excerpt_separator: "<!--more-->"
Expand Down Expand Up @@ -72,6 +72,14 @@ google_font:
- url: https://fonts.googleapis.com/css?family=Ubuntu+Mono&display=swap
- url: https://fonts.googleapis.com/css?family=Material+Icons&display=swap

webrick:
headers:
Content-Security-Policy: "default-src 'none'; script-src 'self' 'sha256-yNyiwuL8nlvR0Bq9yrHJ3qM9z/5f5vTLPepYSp3rYi4=' https://www.google-analytics.com; script-src-elem 'self' 'sha256-yNyiwuL8nlvR0Bq9yrHJ3qM9z/5f5vTLPepYSp3rYi4=' https://www.google-analytics.com; img-src 'self' https://www.google-analytics.com https://www.gravatar.com https://webmention.io data: https:; font-src 'self' https://fonts.gstatic.com data:; style-src 'self' https://fonts.googleapis.com 'unsafe-inline'; frame-src 'self' https://www.youtube.com; base-uri 'none'; form-action 'none'; require-trusted-types-for 'script'; frame-ancestors 'none'; block-all-mixed-content;"
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Referrer-Policy: no-referrer-when-downgrade

# Build settings
markdown: kramdown
theme: minima
Expand Down
15 changes: 15 additions & 0 deletions _headers
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*
# CSP
Content-Security-Policy: default-src 'none'; script-src 'self' 'sha256-yNyiwuL8nlvR0Bq9yrHJ3qM9z/5f5vTLPepYSp3rYi4=' https://www.google-analytics.com; script-src-elem 'self' 'sha256-yNyiwuL8nlvR0Bq9yrHJ3qM9z/5f5vTLPepYSp3rYi4=' https://www.google-analytics.com; img-src 'self' https://www.google-analytics.com https://www.gravatar.com https://webmention.io data: https:; font-src 'self' https://fonts.gstatic.com data:; style-src 'self' https://fonts.googleapis.com 'unsafe-inline'; frame-src 'self' https://www.youtube.com; base-uri 'none'; form-action 'none'; require-trusted-types-for 'script'; frame-ancestors 'none'; block-all-mixed-content;

# Block site from being framed with X-Frame-Options
X-Frame-Options: DENY

# Prevent browsers from incorrectly detecting non-scripts as scripts
X-Content-Type-Options: nosniff

# Block pages from loading when they detect reflected XSS attacks
X-XSS-Protection: 1; mode=block

# Do not send the referrer header when navigating from HTTPS to HTTP
Referrer-Policy: no-referrer-when-downgrade