[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/05: hydra: nginx: Add server blocks for disarchive.guix.gnu.org.
From: |
Ludovic Courtès |
Subject: |
05/05: hydra: nginx: Add server blocks for disarchive.guix.gnu.org. |
Date: |
Thu, 14 Oct 2021 05:58:18 -0400 (EDT) |
civodul pushed a commit to branch master
in repository maintenance.
commit 9ffb2db81a2fbee67b99c76217be874ec0fd6bde
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Thu Oct 14 11:57:23 2021 +0200
hydra: nginx: Add server blocks for disarchive.guix.gnu.org.
* hydra/nginx/berlin.scm (%berlin-servers): Add
"disarchive.guix.gnu.org", ports 80 and 443.
---
hydra/nginx/berlin.scm | 23 ++++++++++++++++++++++-
1 file changed, 22 insertions(+), 1 deletion(-)
diff --git a/hydra/nginx/berlin.scm b/hydra/nginx/berlin.scm
index 44ff28e..d49bd4b 100644
--- a/hydra/nginx/berlin.scm
+++ b/hydra/nginx/berlin.scm
@@ -1,5 +1,5 @@
;; Nginx configuration for ci.guix.gnu.org
-;; Copyright © 2016, 2017, 2018, 2019, 2020 Ludovic Courtès <ludo@gnu.org>
+;; Copyright © 2016, 2017, 2018, 2019, 2020, 2021 Ludovic Courtès
<ludo@gnu.org>
;; Copyright © 2017, 2018, 2019, 2020, 2021 Ricardo Wurmus <rekado@elephly.net>
;; Copyright © 2020 Christopher Baines <mail@cbaines.net>
;; Copyright © 2020, 2021 Florian Pelz <pelzflorian@pelzflorian.de>
@@ -832,6 +832,17 @@ PUBLISH-URL."
(nginx-server-configuration
(listen '("80"))
+ (server-name '("disarchive.guix.gnu.org"))
+ (root "/gnu/disarchive")
+ (raw-content
+ ;; Tell nginx to always read 'FILE.gz' when asked for 'FILE', and to
+ ;; gunzip it on the fly (because the client for this typically doesn't
+ ;; properly support gzip encoding).
+ (list "gzip_static always; gunzip on;\n"
+ "access_log /var/log/nginx/disarchive.access.log;")))
+
+ (nginx-server-configuration
+ (listen '("80"))
(server-name '("guix.gnu.org"))
(root "/srv/guix.gnu.org")
(locations guix.gnu.org-locations)
@@ -933,6 +944,16 @@ PUBLISH-URL."
(nginx-server-configuration
(listen '("443 ssl"))
+ (server-name '("disarchive.guix.gnu.org"))
+ (ssl-certificate (le "disarchive.guix.gnu.org"))
+ (ssl-certificate-key (le "disarchive.guix.gnu.org" 'key))
+ (root "/gnu/disarchive")
+ (raw-content
+ (list "gzip_static always; gunzip on;\n"
+ "access_log /var/log/nginx/disarchive.access.log;")))
+
+ (nginx-server-configuration
+ (listen '("443 ssl"))
(server-name '("guix.gnu.org"))
(ssl-certificate (le "guix.gnu.org"))
(ssl-certificate-key (le "guix.gnu.org" 'key))