From fdfa857794f290cbbb0fb147098bfa15aef3c570 Mon Sep 17 00:00:00 2001 From: Markos Gogoulos Date: Thu, 8 Jan 2026 17:44:44 +0200 Subject: [PATCH] fix --- deploy/docker/nginx_http_only.conf | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/deploy/docker/nginx_http_only.conf b/deploy/docker/nginx_http_only.conf index f4a84d1c..b46c7992 100644 --- a/deploy/docker/nginx_http_only.conf +++ b/deploy/docker/nginx_http_only.conf @@ -1,3 +1,9 @@ +# Use existing X-Forwarded-Proto from reverse proxy if present, otherwise use $scheme +map $http_x_forwarded_proto $forwarded_proto { + default $http_x_forwarded_proto; + '' $scheme; +} + server { listen 80 ; @@ -32,6 +38,6 @@ server { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header X-Forwarded-Proto $forwarded_proto; } }