[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/02: hydra: bayfront: Remove nginx timeouts and redirects for /package
From: |
Ludovic Courtès |
Subject: |
02/02: hydra: bayfront: Remove nginx timeouts and redirects for /package/source. |
Date: |
Mon, 15 Jan 2024 08:53:13 -0500 (EST) |
civodul pushed a commit to branch master
in repository maintenance.
commit ae0d1ad181eae1b9927605d28dc2b8b8602cfac3
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Mon Jan 15 14:52:40 2024 +0100
hydra: bayfront: Remove nginx timeouts and redirects for /package/source.
* hydra/bayfront.scm (%hpc.guix.info-nginx-servers): Add location block
for /package/source.
---
hydra/bayfront.scm | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/hydra/bayfront.scm b/hydra/bayfront.scm
index c76b6a3..0fd458e 100644
--- a/hydra/bayfront.scm
+++ b/hydra/bayfront.scm
@@ -384,6 +384,14 @@ add_header X-Frame-Options SAMEORIGIN;\n")
proxy_connect_timeout 3s;
proxy_read_timeout 2s;
error_page 500 502 503 504 = @gnupackages;")))
+ (nginx-location-configuration
+ ;; These are links to badges and source code on
+ ;; archive.softwareheritage.org. hpcguix-web can be quite slow
+ ;; serving these because they typically involve a round-trip to
+ ;; https://disarchive.guix.gnu.org. Thus, disable the timeouts
+ ;; and redirects that apply to the rest of /packages below.
+ (uri "/package/source")
+ (body '("proxy_pass http://localhost:5000;")))
(nginx-location-configuration
(uri "/package")
(body '("proxy_pass http://localhost:5000;