[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/02: hydra: nginx: Compress fonts and manual pages.
From: |
Ludovic Courtès |
Subject: |
01/02: hydra: nginx: Compress fonts and manual pages. |
Date: |
Thu, 7 Mar 2024 08:57:39 -0500 (EST) |
civodul pushed a commit to branch master
in repository maintenance.
commit a24d37dcecaa2821acfb1497cfed472aea781b5c
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Thu Mar 7 14:52:16 2024 +0100
hydra: nginx: Compress fonts and manual pages.
* hydra/modules/sysadmin/nginx.scm (guix.gnu.org-other-locations): Add
“gzip on” directive to /static/base/fonts and /manual.
---
hydra/modules/sysadmin/nginx.scm | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/hydra/modules/sysadmin/nginx.scm b/hydra/modules/sysadmin/nginx.scm
index c2ce8ea..73a2ad9 100644
--- a/hydra/modules/sysadmin/nginx.scm
+++ b/hydra/modules/sysadmin/nginx.scm
@@ -669,6 +669,7 @@ synonymous IETF language tags that should be mapped to the
same $lang."
(nginx-location-configuration
(uri "/static/base/fonts")
(body (list "expires 30d;" ;fonts never change
+ "gzip on;"
"alias /srv/guix.gnu.org/static/base/fonts;")))
;; XXX: This is really a hack to work around the fact that we can't have
@@ -682,14 +683,17 @@ synonymous IETF language tags that should be mapped to
the same $lang."
(nginx-location-configuration
(uri "~ /manual/devel(|/.*)$")
(body (list "expires 4h;"
+ "gzip on;"
"alias /srv/guix-manual-devel$1;")))
(nginx-location-configuration
(uri "~ /manual(|/.*)$")
(body (list "expires 1d;"
+ "gzip on;"
"alias /srv/guix-manual$1;")))
(nginx-location-configuration
(uri "~ /cookbook(|/.*)$")
(body (list "expires 4h;"
+ "gzip on;"
"alias /srv/guix-cookbook$1;")))
(nginx-location-configuration
(uri "~ \\.pdf$") ;*.pdf at the top level