all repos — homestead @ 2badc3b01a19b60e21dd7b6d812de1ed5505d82f

Code for my website

Build docker image

Alan Pearce
commit

2badc3b01a19b60e21dd7b6d812de1ed5505d82f

parent

28bc0ad06a98be9d5b0ccf961e6b6a237fee7a9a

1 file changed, 25 insertions(+), 0 deletions(-)

changed files
A Caddyfile
@@ -0,0 +1,25 @@
+http:// { + root * public/ + file_server { + precompressed br zstd gzip + } + header { + Cache-Control max-age=14400 + X-Content-Type-Options nosniff + Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" + } + handle_errors { + @404 expression `{err.status_code} == 404` + handle @404 { + rewrite * /404.html + } + file_server { + precompressed br zstd gzip + } + } + header /feed-styles/ Content-Type text/xsl + error /feed-styles/index.html* 404 + respond /favicon.ico 204 + redir /index.xml /atom.xml + redir /post/index.xml /atom.xml +}