22
0
mirror of https://github.com/SuperSandro2000/nixos-modules.git synced 2024-06-13 19:45:48 +02:00

nginx: compress nix archives with zstd

This commit is contained in:
Sandro - 2023-02-01 01:13:07 +01:00
parent 774181f729
commit 8b57808135
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -70,6 +70,13 @@ in
};
}
(lib.mkIf cfg.recommendedZstdSettings {
commonHttpConfig = ''
# TODO: upstream this?
zstd_types application/x-nix-archive;
'';
})
(lib.mkIf cfg.allRecommended (libS.modules.mkRecursiveDefault {
recommendedBrotliSettings = true;
recommendedGzipSettings = true;