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