diff options
author | Frederick Muriuki Muriithi | 2024-03-04 07:29:51 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-03-05 03:43:57 +0300 |
commit | 36b48fd03fd9593936b88ebcca827e77cb790bf1 (patch) | |
tree | 27f2fbd0bc334bca9cb58986e28fa044b350ef62 /genenetwork-development.scm | |
parent | b61b4b2026cbd8dec69c15d14650ef1cfb2bead9 (diff) | |
download | gn-machines-36b48fd03fd9593936b88ebcca827e77cb790bf1.tar.gz |
Pass on the request scheme to GN2 app
This is useful to enable building URIs with the correct scheme in the
application. These URIs are important when redirection to and from
external services such as the gn-auth service.
Diffstat (limited to 'genenetwork-development.scm')
-rw-r--r-- | genenetwork-development.scm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/genenetwork-development.scm b/genenetwork-development.scm index 82e202a..8139635 100644 --- a/genenetwork-development.scm +++ b/genenetwork-development.scm @@ -1000,7 +1000,8 @@ GeneNetwork2 and GeneNetwork3 are listening on." (uri "/") (body (list (string-append "proxy_pass http://localhost:" (number->string gn2-port) ";") - "proxy_set_header Host $host;"))) + "proxy_set_header Host $host;" + "proxy_set_header X-Forwarded-Proto $scheme;"))) (nginx-location-configuration ;; Reverse proxy genenetwork3. (uri "/api3") |