guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: hydra: nginx: Really compress fonts.


From: Ludovic Courtès
Subject: branch master updated: hydra: nginx: Really compress fonts.
Date: Thu, 07 Mar 2024 09:20:39 -0500

This is an automated email from the git hooks/post-receive script.

civodul pushed a commit to branch master
in repository maintenance.

The following commit(s) were added to refs/heads/master by this push:
     new da2edcf  hydra: nginx: Really compress fonts.
da2edcf is described below

commit da2edcffa81293e0e3563159f33332bb06daf45c
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Thu Mar 7 15:18:53 2024 +0100

    hydra: nginx: Really compress fonts.
    
    * hydra/bayfront.scm (%hpc.guix.info-nginx-servers): Add “gzip_types *”
    for /static/fonts.
    * hydra/modules/sysadmin/nginx.scm (guix.gnu.org-other-locations):
    Likewise for /static/base/fonts.
---
 hydra/bayfront.scm               | 1 +
 hydra/modules/sysadmin/nginx.scm | 1 +
 2 files changed, 2 insertions(+)

diff --git a/hydra/bayfront.scm b/hydra/bayfront.scm
index 1e140f1..081339d 100644
--- a/hydra/bayfront.scm
+++ b/hydra/bayfront.scm
@@ -457,6 +457,7 @@ add_header X-Frame-Options SAMEORIGIN;\n")
           (nginx-location-configuration
            (uri "/static/fonts")                  ;.ttf files don't change
            (body `("gzip on;"
+                   "gzip_types *;"
                    ,(string-append
                      "add_header Cache-Control max-age="
                      (number->string (* 3600 24 30))) ";")))
diff --git a/hydra/modules/sysadmin/nginx.scm b/hydra/modules/sysadmin/nginx.scm
index 73a2ad9..59d5856 100644
--- a/hydra/modules/sysadmin/nginx.scm
+++ b/hydra/modules/sysadmin/nginx.scm
@@ -670,6 +670,7 @@ synonymous IETF language tags that should be mapped to the 
same $lang."
     (uri "/static/base/fonts")
     (body (list "expires 30d;"                    ;fonts never change
                 "gzip on;"
+                "gzip_types *;"
                 "alias /srv/guix.gnu.org/static/base/fonts;")))
 
    ;; XXX: This is really a hack to work around the fact that we can't have



reply via email to

[Prev in Thread] Current Thread [Next in Thread]