From 5a0606b3edb1a09df8c61d4154900601dc5b2864 Mon Sep 17 00:00:00 2001 From: Erwin Boskma Date: Mon, 4 Nov 2024 13:16:51 +0100 Subject: [PATCH] heimdall(caddy): Add factorio.datarift.nl --- machines/heimdall/caddy/default.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/machines/heimdall/caddy/default.nix b/machines/heimdall/caddy/default.nix index 5c645c9..db9cc39 100644 --- a/machines/heimdall/caddy/default.nix +++ b/machines/heimdall/caddy/default.nix @@ -25,6 +25,20 @@ ''; }; + "factorio.datarift.nl" = { + extraConfig = '' + root * /var/www/factorio.datarift.nl + encode zstd gzip + + header /index.html Cache-Control nocache + header /d-*/* Cache-Control "public, immutable, max-age=31536000" + header *.js Cache-Control "public, immutable, max-age=31536000" + header /thumbnail.png Cache-Control "public, max-age=604800" + + file_server + ''; + }; + "boskma.frl" = { extraConfig = '' header /.well-known/matrix/* Content-Type application/json