diff options
| author | Arun Isaac | 2026-04-16 00:22:04 +0100 |
|---|---|---|
| committer | Arun Isaac | 2026-04-16 00:22:04 +0100 |
| commit | 68a5d13751674127b38dacc164a5ed8f638d44d2 (patch) | |
| tree | a3ed9b0bf72088c40307ec0f20ce39b0626fb7d1 | |
| parent | bab294a6d6163109bef16e7b08fcd31b15992e5a (diff) | |
| download | guix-forge-68a5d13751674127b38dacc164a5ed8f638d44d2.tar.gz guix-forge-68a5d13751674127b38dacc164a5ed8f638d44d2.tar.lz guix-forge-68a5d13751674127b38dacc164a5ed8f638d44d2.zip | |
klaus: Pass more headers in from the nginx reverse proxy.
| -rw-r--r-- | guix/forge/klaus.scm | 10 |
1 files changed, 9 insertions, 1 deletions
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 |
