guix-commits
[Top][All Lists]
Advanced

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

03/03: nginx: berlin: Add 'Onion-Location' header on Cuirass responses.


From: Ludovic Courtès
Subject: 03/03: nginx: berlin: Add 'Onion-Location' header on Cuirass responses.
Date: Fri, 18 Mar 2022 17:56:51 -0400 (EDT)

civodul pushed a commit to branch master
in repository maintenance.

commit 3d37861a416edf50b797321109fe645c8be70889
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Fri Mar 18 22:53:19 2022 +0100

    nginx: berlin: Add 'Onion-Location' header on Cuirass responses.
    
    * hydra/nginx/berlin.scm (berlin-locations): In the Cuirass location
    block, add 'Onion-Location' header.
---
 hydra/nginx/berlin.scm | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/hydra/nginx/berlin.scm b/hydra/nginx/berlin.scm
index cf03e0e..8bf09ae 100644
--- a/hydra/nginx/berlin.scm
+++ b/hydra/nginx/berlin.scm
@@ -151,7 +151,12 @@ PUBLISH-URL."
            ;; Cuirass.
            (nginx-location-configuration
             (uri "/")
-            (body (list "proxy_pass http://localhost:8081;";)))
+            (body (list "proxy_pass http://localhost:8081;";
+                        ;; See
+                        ;; 
<https://community.torproject.org/onion-services/advanced/onion-location/>.
+                        (string-append
+                         "add_header Onion-Location http://"; %ci-onion
+                         "$request_uri;"))))
            (nginx-location-configuration
             (uri "~ ^/admin")
             (body



reply via email to

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