[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/02: nginx: berlin: Cache Cuirass build products.
From: |
Ludovic Courtès |
Subject: |
02/02: nginx: berlin: Cache Cuirass build products. |
Date: |
Sun, 3 Sep 2023 11:44:54 -0400 (EDT) |
civodul pushed a commit to branch master
in repository maintenance.
commit 8f2ce9f8b6454e6febd9332f0b5c9fa2296b5109
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Fri Sep 1 10:53:51 2023 +0200
nginx: berlin: Cache Cuirass build products.
This should help further mitigate <https://issues.guix.gnu.org/64317>.
* hydra/nginx/berlin.scm (berlin-locations): Add location block for
"/download".
---
hydra/nginx/berlin.scm | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/hydra/nginx/berlin.scm b/hydra/nginx/berlin.scm
index 21a32d7..7219257 100644
--- a/hydra/nginx/berlin.scm
+++ b/hydra/nginx/berlin.scm
@@ -173,6 +173,17 @@ PUBLISH-URL."
"proxy_cache_valid any 10m;"
"proxy_ignore_client_abort on;")))
+ (nginx-location-configuration
+ (uri "/download") ;Cuirass "build products"
+ (body
+ (list
+ "proxy_pass http://localhost:8081;"
+ "expires 10d;" ;override 'Cache-Control'
+ "proxy_cache static;"
+ "proxy_cache_valid 200 30d;"
+ "proxy_cache_valid any 10m;"
+ "proxy_ignore_client_abort on;")))
+
(nginx-location-configuration ;certbot
(uri "/.well-known")
(body (list "root /var/www;")))