X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=modules%2Fprivate%2Fwebsites%2Fdefault.nix;h=a3dcbb9c789a88d3afca424931bb95fd5bb348e8;hb=9271611c189a3ed4129d3b98422f86ab3f774f10;hp=2cc6c8151af8923bef68a4a2c887fd86dd21c928;hpb=8722d69346d5cee802e205e18a2b23d3d4fb4805;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/modules/private/websites/default.nix b/modules/private/websites/default.nix index 2cc6c81..a3dcbb9 100644 --- a/modules/private/websites/default.nix +++ b/modules/private/websites/default.nix @@ -3,6 +3,19 @@ let www_root = "/run/current-system/webapps/_www"; theme_root = "/run/current-system/webapps/_theme"; apacheConfig = { + cache = { + # This setting permits to ignore time-based cache for files in the + # nix store: + # If a client requires an If-Modified-Since from timestamp 1, then + # this header is removed, and if the response contains a + # too old Last-Modified tag, then it is removed too + extraConfig = '' + + RequestHeader unset If-Modified-Since + + Header unset Last-Modified "expr=%{LAST_MODIFIED} < 19991231235959" + ''; + }; gzip = { modules = [ "deflate" "filter" ]; extraConfig = '' @@ -299,6 +312,8 @@ in tools.peertube.enable = true; tools.tools.enable = true; tools.email.enable = true; + + games.codenames.enable = true; }; }; }