[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/03: hydra: bayfront: Address some website related issues.
From: |
Christopher Baines |
Subject: |
01/03: hydra: bayfront: Address some website related issues. |
Date: |
Thu, 6 Jan 2022 08:09:22 -0500 (EST) |
cbaines pushed a commit to branch master
in repository maintenance.
commit 54765c86242f6f7a3ac7c6f2fe8c69b8efb8e669
Author: Christopher Baines <mail@cbaines.net>
AuthorDate: Thu Jan 6 13:04:35 2022 +0000
hydra: bayfront: Address some website related issues.
* hydra/bayfront.scm (%bayfront-nginx-service-extra-config):
Include (accept-languages), as this is required by the Guix website.
(operating-system)[services]: Include the nginx-accept-language-module
in the NGinx configuration, as this is needed for the Guix website.
---
hydra/bayfront.scm | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/hydra/bayfront.scm b/hydra/bayfront.scm
index 30ed485..9a8799b 100644
--- a/hydra/bayfront.scm
+++ b/hydra/bayfront.scm
@@ -11,7 +11,7 @@
(use-modules (gnu) (guix) (guix packages) (guix git)
(guix modules)
(sysadmin people) (sysadmin services)
- (sysadmin dns) (sysadmin web))
+ (sysadmin dns) (sysadmin web) (sysadmin nginx))
(use-service-modules admin avahi base certbot databases dns
monitoring networking shepherd ssh vpn web mcron guix)
(use-package-modules admin certs ci databases linux ssh tls vim
@@ -214,7 +214,8 @@ Happy hacking!\n"))
;;;
(define %bayfront-nginx-service-extra-config
- "
+ (list (accept-languages)
+ "
sendfile on;
# Maximum chunk size to send. Partly this is a workaround
@@ -268,7 +269,7 @@ proxy_cache_path /var/cache/nginx/bordeaux/nar
inactive=28d # inactive keys removed after 28d
keys_zone=bordeaux-nar:64m
max_size=2048g; # total cache data size max
-")
+"))
(define %hpc.guix.info-nginx-servers
(let ((common-locations
@@ -980,6 +981,12 @@ access_log /var/log/nginx/bordeaux.access.log;"))
(global-directives
'((events . ())
(worker_processes . 8)))
+ (modules
+ (list
+ ;; Module to redirect users to the localized pages of their
choice.
+ (file-append
+ nginx-accept-language-module
+ "/etc/nginx/modules/ngx_http_accept_language_module.so")))
(extra-content %bayfront-nginx-service-extra-config)
(upstream-blocks
(list (nginx-upstream-configuration