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".
This commit is contained in:
Ludovic Courtès 2023-09-01 10:53:51 +02:00
parent d30f295ea6
commit 8f2ce9f8b6
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 11 additions and 0 deletions

View File

@ -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;")))