diff options
author | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2024-05-18 12:38:44 +0700 |
---|---|---|
committer | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2024-05-18 12:38:44 +0700 |
commit | 176a872750a3e0aeaa78deb5f064c9614f80f439 (patch) | |
tree | 2f761cf04d4f8f06aa235989cd60b29bd1266e33 | |
parent | b9db0e0b98da4d45fcecb2b1a16dd394eacd0442 (diff) | |
download | nixos-conf-176a872750a3e0aeaa78deb5f064c9614f80f439.tar.gz |
Add compression setting for images
-rw-r--r-- | static.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/static.nix b/static.nix index 378198a..8d0291f 100644 --- a/static.nix +++ b/static.nix @@ -50,10 +50,13 @@ in { additionalModules = [ pkgs.nginxModules.pam ]; appendHttpConfig = '' access_log off; + brotli_types text/html image/png image/jpeg; + gzip_types image/png image/jpeg; ''; enable = true; enableReload = true; logError = "/dev/null"; + recommendedBrotliSettings = true; recommendedGzipSettings = true; recommendedOptimisation = true; recommendedProxySettings = true; |