guix-commits
[Top][All Lists]
Advanced

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

04/04: hydra: bishan: Enable serving cached nars.


From: Christopher Baines
Subject: 04/04: hydra: bishan: Enable serving cached nars.
Date: Thu, 19 Jan 2023 05:12:51 -0500 (EST)

cbaines pushed a commit to branch master
in repository maintenance.

commit 2c0b9b74ead69d23ec9db6474a680986726b335a
Author: Christopher Baines <mail@cbaines.net>
AuthorDate: Thu Jan 19 10:10:19 2023 +0000

    hydra: bishan: Enable serving cached nars.
    
    * hydra/bishan.scm (%nginx-server-blocks): Enable serving cached nars.
---
 hydra/bishan.scm | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/hydra/bishan.scm b/hydra/bishan.scm
index ad3c664..f492379 100644
--- a/hydra/bishan.scm
+++ b/hydra/bishan.scm
@@ -58,6 +58,17 @@
 
     # Nars are already compressed.
     gzip off;
+")))
+          (nginx-location-configuration
+           (uri "~ ^/internal/cached-nar/(.*)$")
+           (body '("
+    internal;
+    root /var/cache/nar-herder;
+    try_files /nar/$1;
+
+    error_page 404 /404;
+    client_body_buffer_size 256k;
+    gzip off;
 ")))
           (nginx-location-configuration
            (uri "~ ^/internal/database/(.*)$")



reply via email to

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