about summary refs log tree commit diff
diff options
context:
space:
mode:
authorArun Isaac2026-04-17 00:24:33 +0100
committerArun Isaac2026-04-17 00:24:33 +0100
commit2eca0f92e6ad002be21bbdbcff3d006a17197f33 (patch)
tree3efd9cf747106faa0f7fc3b64851ec77f8b1dc22
parent68a5d13751674127b38dacc164a5ed8f638d44d2 (diff)
downloadguix-forge-main.tar.gz
guix-forge-main.tar.lz
guix-forge-main.zip
klaus: Pass in scheme from the nginx reverse proxy. HEAD main
-rw-r--r--guix/forge/klaus.scm7
1 files changed, 3 insertions, 4 deletions
diff --git a/guix/forge/klaus.scm b/guix/forge/klaus.scm
index cb5815d..11cdbd5 100644
--- a/guix/forge/klaus.scm
+++ b/guix/forge/klaus.scm
@@ -110,11 +110,10 @@
             (list (nginx-location-configuration
                    (uri "/")
                    (body (list (socket->nginx-proxy-pass socket)
-                               ;; Pass in the header fields of the original
-                               ;; request.
+                               ;; Pass in the host, scheme and header fields of
+                               ;; the original request.
                                "proxy_pass_request_headers on;"
-                               ;; Let klaus know which domain the request was
-                               ;; received for.
+                               "proxy_set_header X-Forwarded-Proto $scheme;"
                                "proxy_set_header Host $host;")))))))))
 
 (define klaus-service-type