civodul pushed a commit to branch master
in repository maintenance.

commit 559573f15be9acb9d90ea296695aa17009e8f716
Author: Ludovic Courtès <l...@gnu.org>
AuthorDate: Tue Aug 13 11:35:53 2024 +0200

    hydra: nginx: Gzip guix.gnu.org responses when appropriate.
    
    * hydra/modules/sysadmin/nginx.scm (guix.gnu.org-nginx-server): Add
    “gzip on;” and related directives.
---
 hydra/modules/sysadmin/nginx.scm | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/hydra/modules/sysadmin/nginx.scm b/hydra/modules/sysadmin/nginx.scm
index e18c9b4f..8628222b 100644
--- a/hydra/modules/sysadmin/nginx.scm
+++ b/hydra/modules/sysadmin/nginx.scm
@@ -773,5 +773,13 @@ synonymous IETF language tags that should be mapped to the 
same $lang."
          "if_modified_since off;"
          "etag off;"
 
+         ;; Compress things that can benefit from it.
+         "gzip on;"
+         "gzip_vary on;"
+         "gzip_min_length 4096;"
+         "gzip_types text/html text/css text/plain text/xml \
+                     application/javascript \
+                     image/svg+xml font/ttf font/otf font/opentype;"
+
          "rewrite (.*)/$ $1/index.html;"
          "access_log /var/log/nginx/guix-gnu-org.https.access.log;")))))

Reply via email to