Skip to content

Commit

Permalink
Add X-Forwarded-Proto to nginx config
Browse files Browse the repository at this point in the history
Mojolicious requires proper knowledge about the reverse proxy
infrastructure for login redirects to work as described in
https://docs.mojolicious.org/Mojolicious/Guides/Cookbook#Reverse-proxy.
We were missing an additional header which I took from the example in
https://docs.mojolicious.org/Mojolicious/Guides/Cookbook#Nginx.
  • Loading branch information
nicksinger committed Jul 21, 2023
1 parent f2a2a13 commit 3c2168a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions etc/nginx/vhosts.d/openqa-locations.inc
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,5 @@ location / {
proxy_set_header X-Forwarded-Host $host:$server_port;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}

0 comments on commit 3c2168a

Please sign in to comment.