Skip to content

Instantly share code, notes, and snippets.

@sunshinekitty
Created November 25, 2016 21:16
Show Gist options
  • Save sunshinekitty/71c9663f96d82fd3b65bc1674a03611f to your computer and use it in GitHub Desktop.
Save sunshinekitty/71c9663f96d82fd3b65bc1674a03611f to your computer and use it in GitHub Desktop.
Caddy config for Github Pages
tears.io {
header / {
# Enable HTTP Strict Transport Security (HSTS) to force clients to always connect via HTTPS
Strict-Transport-Security "max-age=31536000;"
# Enable cross-site filter (XSS) and tell browser to block detected attacks
X-XSS-Protection "1; mode=block"
# Prevent some browsers from MIME-sniffing a response away from the declared Content-Type
X-Content-Type-Options "nosniff"
# Disallow the site to be rendered within a frame (clickjacking protection)
X-Frame-Options "DENY"
}
proxy / http://sunshinekitty.github.io/ {
transparent
}
log /var/log/caddy/tears.io-access.log
errors /var/log/caddy/tears.io-errors.log
gzip
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment