From 3c2168ac5284f6e8fee5dc91938475e7cfe953d9 Mon Sep 17 00:00:00 2001 From: nicksinger Date: Fri, 21 Jul 2023 12:13:32 +0200 Subject: [PATCH] Add X-Forwarded-Proto to nginx config 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. --- etc/nginx/vhosts.d/openqa-locations.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/etc/nginx/vhosts.d/openqa-locations.inc b/etc/nginx/vhosts.d/openqa-locations.inc index 6794529a42d..107b0a035bd 100644 --- a/etc/nginx/vhosts.d/openqa-locations.inc +++ b/etc/nginx/vhosts.d/openqa-locations.inc @@ -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; }