From 66f5cfef8caad5b43ea46e3d57e5885dabaad287 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Jochum?= Date: Sun, 4 Sep 2022 04:15:09 +0200 Subject: [PATCH] Forgot to add Caddyfile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: René Jochum --- docker/caddy/Caddyfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 docker/caddy/Caddyfile 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 +}