2
0
Fork 0
mirror of git://git.savannah.gnu.org/guix/maintenance.git synced 2023-12-14 03:33:04 +01:00

hydra: bayfront: Alter bordeaux.guix.gnu.org.

Use a new prototype frontend rather than a static webpage.

* hydra/bayfront.scm (%bordeaux.guix.gnu.org-nginx-servers): Proxy
requests to the new frontend and use a standard root.
(host-name): Include the bffe upstream.
This commit is contained in:
Christopher Baines 2023-04-13 18:57:23 +01:00
parent 1e428e8fd6
commit d3627a9d87
No known key found for this signature in database
GPG key ID: 5E28A33B0B84F577

View file

@ -677,14 +677,25 @@ add_header Content-Type text/plain;")))
(body '("alias /var/lib/guix-build-coordinator/build-logs/$1/log;"
"add_header Content-Type 'text/plain; charset=UTF-8';"
"gzip_static always;"
"gunzip on;"))))))
"gunzip on;")))
(nginx-location-configuration
(uri "/")
(body '("proxy_pass http://bffe;"
"proxy_http_version 1.1;"
"proxy_set_header Connection \"\";")))
(nginx-location-configuration
(uri "/events")
(body '("proxy_pass http://bffe;"
"proxy_http_version 1.1;"
"proxy_buffering off;"
"proxy_set_header Connection \"\";"))))))
(list
(nginx-server-configuration
(server-name '("bordeaux.guix.gnu.org"))
(listen '("80 reuseport"
"[::]:80 reuseport"))
(root (local-file "nginx/html/bordeaux" #:recursive? #t))
(root "/srv/bordeaux.guix.gnu.org")
(raw-content
'("access_log /var/log/nginx/bordeaux.access.log.gz combined gzip flush=1m;"))
(locations
@ -699,7 +710,7 @@ add_header Content-Type text/plain;")))
(server-name '("bordeaux.guix.gnu.org"))
(listen '("443 ssl reuseport"
"[::]:443 ssl reuseport"))
(root (local-file "nginx/html/bordeaux" #:recursive? #t))
(root "/srv/bordeaux.guix.gnu.org")
(ssl-certificate
"/etc/letsencrypt/live/bordeaux.guix.gnu.org/fullchain.pem")
(ssl-certificate-key
@ -1169,6 +1180,9 @@ add_header Content-Type text/plain;")))
(nginx-upstream-configuration
(name "qa-frontpage")
(servers '("localhost:8765")))
(nginx-upstream-configuration
(name "bffe")
(servers '("localhost:8767")))
(nginx-upstream-configuration
(name "packages")
(servers '("localhost:3000")))))