Created
November 25, 2016 21:16
-
-
Save sunshinekitty/71c9663f96d82fd3b65bc1674a03611f to your computer and use it in GitHub Desktop.
Caddy config for Github Pages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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