about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNgô Ngọc Đức Huy <huyngo@disroot.org>2024-05-18 12:38:44 +0700
committerNgô Ngọc Đức Huy <huyngo@disroot.org>2024-05-18 12:38:44 +0700
commit176a872750a3e0aeaa78deb5f064c9614f80f439 (patch)
tree2f761cf04d4f8f06aa235989cd60b29bd1266e33
parentb9db0e0b98da4d45fcecb2b1a16dd394eacd0442 (diff)
downloadnixos-conf-176a872750a3e0aeaa78deb5f064c9614f80f439.tar.gz
Add compression setting for images
-rw-r--r--static.nix3
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;