diff options
author | Alan Pearce | 2023-06-30 18:42:51 +0200 |
---|---|---|
committer | Alan Pearce | 2023-06-30 18:42:51 +0200 |
commit | 90c15edbc8c4b664704f4e205cffcfeff578f98c (patch) | |
tree | ef71c59e931729d46e221dcecf44ee5d89ac8b87 /Caddyfile | |
parent | 416aed825565074c19ab4550766da1623b8bb326 (diff) | |
download | website-90c15edbc8c4b664704f4e205cffcfeff578f98c.tar.lz website-90c15edbc8c4b664704f4e205cffcfeff578f98c.tar.zst website-90c15edbc8c4b664704f4e205cffcfeff578f98c.zip |
Build docker image
Diffstat (limited to 'Caddyfile')
-rw-r--r-- | Caddyfile | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Caddyfile b/Caddyfile new file mode 100644 index 0000000..6e62a6d --- /dev/null +++ b/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 +} |