cbaines pushed a commit to branch master
in repository maintenance.
commit 245bcfe39b3add6147bb72f4dd800843440ed025
Author: Christopher Baines <[email protected]>
AuthorDate: Tue Jan 17 09:33:46 2023 +0000
hydra: bayfront: Support /file/ requests for bordeaux.guix.gnu.org.
* hydra/bayfront.scm (%bordeaux.guix.gnu.org-nginx-servers): Support
/file/ requests.
---
hydra/bayfront.scm | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/hydra/bayfront.scm b/hydra/bayfront.scm
index 74c9c80..c2ba83f 100644
--- a/hydra/bayfront.scm
+++ b/hydra/bayfront.scm
@@ -635,6 +635,10 @@ add_header Content-Type text/plain;")))
(body '("proxy_pass http://nar-herder;"
"proxy_http_version 1.1;"
"proxy_set_header Connection \"\";")))
+ (nginx-location-configuration
+ (uri "/file/")
+ (body '("proxy_pass https://nar-storage;"
+ "proxy_cache bordeaux-nar;")))
(nginx-named-location-configuration
(name "nar-storage")
(body '("rewrite /internal/(.*) /$1 break;"