diff --git a/docker/caddy/Caddyfile b/docker/caddy/Caddyfile new file mode 100644 index 0000000..d3151da --- /dev/null +++ b/docker/caddy/Caddyfile @@ -0,0 +1,17 @@ +:80 { + # Set this path to your site's directory. + root * /usr/share/caddy + + # Compress responses according to Accept-Encoding headers + encode zstd gzip + + # Client side caching + @static { + file + path *.ico *.css *.js *.gif *.jpg *.jpeg *.png *.svg *.woff + } + header @static Cache-Control max-age=5184000 + + # Enable the static file server. + file_server +}