guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: hydra: nginx: Redirect /packages to packages.guix


From: Ludovic Courtès
Subject: branch master updated: hydra: nginx: Redirect /packages to packages.guix.gnu.org.
Date: Fri, 25 Nov 2022 13:09:19 -0500

This is an automated email from the git hooks/post-receive script.

civodul pushed a commit to branch master
in repository maintenance.

The following commit(s) were added to refs/heads/master by this push:
     new e97f78b  hydra: nginx: Redirect /packages to packages.guix.gnu.org.
e97f78b is described below

commit e97f78bd61fd4e0c54607861360b18c2a5681131
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Fri Nov 25 19:07:38 2022 +0100

    hydra: nginx: Redirect /packages to packages.guix.gnu.org.
    
    * hydra/modules/sysadmin/nginx.scm (guix.gnu.org-redirect-locations):
    Add location blocks for /packages and /LANG/packages.
---
 hydra/modules/sysadmin/nginx.scm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/hydra/modules/sysadmin/nginx.scm b/hydra/modules/sysadmin/nginx.scm
index 3c3456d..e666c34 100644
--- a/hydra/modules/sysadmin/nginx.scm
+++ b/hydra/modules/sysadmin/nginx.scm
@@ -75,6 +75,13 @@ synonymous IETF language tags that should be mapped to the 
same $lang."
 
 (define guix.gnu.org-redirect-locations
   (list
+   (nginx-location-configuration
+    (uri "~ /packages/.*")
+    (body (list "return 301 https://packages.guix.gnu.org;";)))
+   (nginx-location-configuration
+    (uri "~ /([^/]+)/packages/.*")
+    (body (list "return 301 https://packages.guix.gnu.org;";)))
+
    ;; Short URL for the installation script
    (redirect "/install.sh" 
"https://git.savannah.gnu.org/cgit/guix.git/plain/etc/guix-install.sh";)
    ;; What follows is a list of redirects for URLs that used to be



reply via email to

[Prev in Thread] Current Thread [Next in Thread]