guix-commits
[Top][All Lists]
Advanced

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

branch master updated: hydra: nginx: Add “Access-Control-Allow-Origin” h


From: Ludovic Courtès
Subject: branch master updated: hydra: nginx: Add “Access-Control-Allow-Origin” header on /packages.json.
Date: Tue, 17 Oct 2023 10:04:49 -0400

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 c1cfb3b  hydra: nginx: Add “Access-Control-Allow-Origin” header on 
/packages.json.
c1cfb3b is described below

commit c1cfb3b7930d55b28586d268497314e1d90457d2
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Tue Oct 17 16:03:24 2023 +0200

    hydra: nginx: Add “Access-Control-Allow-Origin” header on /packages.json.
    
    * hydra/modules/sysadmin/nginx.scm (guix.gnu.org-other-locations): Add
    “add_header” directive for /packages.json.
---
 hydra/modules/sysadmin/nginx.scm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hydra/modules/sysadmin/nginx.scm b/hydra/modules/sysadmin/nginx.scm
index 631993d..9284d29 100644
--- a/hydra/modules/sysadmin/nginx.scm
+++ b/hydra/modules/sysadmin/nginx.scm
@@ -706,6 +706,7 @@ synonymous IETF language tags that should be mapped to the 
same $lang."
     (body (list "if_modified_since exact;"
                 "gzip_static always;\n"
                 "expires 3h;\n"                   ;it's updated 4 times a day
+                "add_header Access-Control-Allow-Origin *;\n"
                 "root /srv/package-metadata;")))
 
    (nginx-location-configuration



reply via email to

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