From 68a5d13751674127b38dacc164a5ed8f638d44d2 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Thu, 16 Apr 2026 00:22:04 +0100 Subject: klaus: Pass more headers in from the nginx reverse proxy. --- guix/forge/klaus.scm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/guix/forge/klaus.scm b/guix/forge/klaus.scm index c180e46..cb5815d 100644 --- a/guix/forge/klaus.scm +++ b/guix/forge/klaus.scm @@ -105,9 +105,17 @@ (list (nginx-server-configuration (server-name (list server-name)) (locations + ;; Based on + ;; https://github.com/jonashaag/klaus/wiki/Klaus-behind-a-reverse-proxy#nginx-example (list (nginx-location-configuration (uri "/") - (body (list (socket->nginx-proxy-pass socket)))))))))) + (body (list (socket->nginx-proxy-pass socket) + ;; Pass in the header fields of the original + ;; request. + "proxy_pass_request_headers on;" + ;; Let klaus know which domain the request was + ;; received for. + "proxy_set_header Host $host;"))))))))) (define klaus-service-type (service-type -- cgit 1.4.1