[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/03: hydra: bayfront: Stop serving nars through bayfront.guix.gnu.org.
From: |
Christopher Baines |
Subject: |
03/03: hydra: bayfront: Stop serving nars through bayfront.guix.gnu.org. |
Date: |
Tue, 21 Dec 2021 05:50:20 -0500 (EST) |
cbaines pushed a commit to branch master
in repository maintenance.
commit 6fa9a3ff0079d3f47e5f79bf1b19961e9df1fa4c
Author: Christopher Baines <mail@cbaines.net>
AuthorDate: Tue Dec 21 10:43:43 2021 +0000
hydra: bayfront: Stop serving nars through bayfront.guix.gnu.org.
This is partially duplicating the behaviour of the NGinx configuration
for bordeaux.guix.gnu.org. For maintainability, I think it's worth now
switching to just having bordeaux.guix.gnu.org serve nars. This also
enables getting guix publish back running on bayfront.guix.gnu.org if
that's something that's wanted.
* hydra/bayfront.scm (%bayfront.guix.gnu.org-nginx-servers): Remove
substitute serving related configuration.
---
hydra/bayfront.scm | 37 ++-----------------------------------
1 file changed, 2 insertions(+), 35 deletions(-)
diff --git a/hydra/bayfront.scm b/hydra/bayfront.scm
index 58237c8..172d025 100644
--- a/hydra/bayfront.scm
+++ b/hydra/bayfront.scm
@@ -443,42 +443,9 @@ proxy_set_header X-Forwarded-For
$proxy_add_x_forwarded_for;"))
(let ((common-locations
(list
(nginx-location-configuration
- (uri "= /nix-cache-info")
- (body '("
- return 200 'StoreDir: /gnu/store\nWantMassQuery: 0\nPriority: 100\n';
- add_header Content-Type text/plain;")))
- (nginx-location-configuration
(uri "= /404")
- (body '("
-return 404 '404';
-add_header Content-Type text/plain;")))
- (nginx-location-configuration
- (uri "~ \\.narinfo$")
- (body '("
- root /var/lib/nars;
-
- error_page 404 /404;
-
- # For HTTP pipelining. This has a dramatic impact on performance.
- client_body_buffer_size 128k;
-
- # Narinfos requests are short, serve many of them on a connection.
- keepalive_requests 20000;
-
- add_header Content-Type text/plain;
-")))
- (nginx-location-configuration
- (uri "/nar/")
- (body '("
- root /var/lib/nars;
-
- error_page 404 /404;
-
- client_body_buffer_size 256k;
-
- # Nars are already compressed.
- gzip off;
-"))))))
+ (body '("return 404 '404';"
+ "add_header Content-Type text/plain;"))))))
(list
(nginx-server-configuration