From 2eca0f92e6ad002be21bbdbcff3d006a17197f33 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Fri, 17 Apr 2026 00:24:33 +0100 Subject: klaus: Pass in scheme from the nginx reverse proxy. --- guix/forge/klaus.scm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'guix/forge/klaus.scm') 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 -- cgit 1.4.1